From f6debc2650fe6b6cfc957d0ac2fc1165a8a144ea Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 26 Sep 2023 08:28:07 +0000 Subject: [PATCH] CodeGen from PR 25970 in Azure/azure-rest-api-specs Merge ea69b1bc53f6c336e67ab39617bb8b31f625932f into 85d0d6c98a47a6b6c2c1684cf94cc8e089c3c4ab --- common/config/rush/pnpm-lock.yaml | 15 +- sdk/security/arm-security/CHANGELOG.md | 1235 +---- sdk/security/arm-security/_meta.json | 8 +- sdk/security/arm-security/package.json | 26 +- .../arm-security/review/arm-security.api.md | 1195 ++++- sdk/security/arm-security/src/models/index.ts | 4741 +++++++++++------ .../arm-security/src/models/mappers.ts | 2975 ++++++++--- .../arm-security/src/models/parameters.ts | 332 +- .../operations/aPICollectionOffboarding.ts | 73 - .../src/operations/aPICollectionOnboarding.ts | 78 - .../src/operations/aPICollections.ts | 715 +++ .../arm-security/src/operations/alerts.ts | 30 +- .../src/operations/azureDevOpsOrgs.ts | 580 ++ .../src/operations/azureDevOpsProjects.ts | 576 ++ .../src/operations/azureDevOpsRepos.ts | 622 +++ .../src/operations/defenderForStorage.ts | 120 + .../src/operations/devOpsConfigurations.ts | 627 +++ .../src/operations/devOpsOperationResults.ts | 75 + .../src/operations/gitHubOwners.ts | 287 + .../{aPICollection.ts => gitHubRepos.ts} | 170 +- .../src/operations/gitLabGroups.ts | 287 + .../src/operations/gitLabProjects.ts | 278 + .../src/operations/gitLabSubgroups.ts | 75 + .../src/operations/healthReportOperations.ts | 71 - .../src/operations/healthReports.ts | 46 +- .../arm-security/src/operations/index.ts | 21 +- .../src/operations/ingestionSettings.ts | 351 -- .../src/operations/sensitivitySettings.ts | 59 + .../serverVulnerabilityAssessmentsSettings.ts | 283 + .../arm-security/src/operations/settings.ts | 6 +- ...sqlVulnerabilityAssessmentBaselineRules.ts | 10 +- .../sqlVulnerabilityAssessmentScanResults.ts | 4 +- .../sqlVulnerabilityAssessmentScans.ts | 4 +- .../src/operationsInterfaces/aPICollection.ts | 51 - .../aPICollectionOffboarding.ts | 28 - .../aPICollectionOnboarding.ts | 32 - .../operationsInterfaces/aPICollections.ts | 127 + .../operationsInterfaces/azureDevOpsOrgs.ts | 133 + .../azureDevOpsProjects.ts | 131 + .../operationsInterfaces/azureDevOpsRepos.ts | 143 + .../defenderForStorage.ts | 44 + .../devOpsConfigurations.ts | 132 + .../devOpsOperationResults.ts | 29 + .../src/operationsInterfaces/gitHubOwners.ts | 57 + .../src/operationsInterfaces/gitHubRepos.ts | 48 + .../src/operationsInterfaces/gitLabGroups.ts | 57 + .../operationsInterfaces/gitLabProjects.ts | 49 + .../operationsInterfaces/gitLabSubgroups.ts | 29 + .../healthReportOperations.ts | 27 - .../src/operationsInterfaces/healthReports.ts | 18 +- .../src/operationsInterfaces/index.ts | 21 +- .../operationsInterfaces/ingestionSettings.ts | 85 - .../sensitivitySettings.ts | 23 + .../serverVulnerabilityAssessmentsSettings.ts | 63 + .../arm-security/src/securityCenter.ts | 186 +- sdk/security/arm-security/test/sampleTest.ts | 43 + sdk/security/arm-security/tsconfig.json | 10 +- 57 files changed, 13040 insertions(+), 4501 deletions(-) delete mode 100644 sdk/security/arm-security/src/operations/aPICollectionOffboarding.ts delete mode 100644 sdk/security/arm-security/src/operations/aPICollectionOnboarding.ts create mode 100644 sdk/security/arm-security/src/operations/aPICollections.ts create mode 100644 sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts create mode 100644 sdk/security/arm-security/src/operations/azureDevOpsProjects.ts create mode 100644 sdk/security/arm-security/src/operations/azureDevOpsRepos.ts create mode 100644 sdk/security/arm-security/src/operations/defenderForStorage.ts create mode 100644 sdk/security/arm-security/src/operations/devOpsConfigurations.ts create mode 100644 sdk/security/arm-security/src/operations/devOpsOperationResults.ts create mode 100644 sdk/security/arm-security/src/operations/gitHubOwners.ts rename sdk/security/arm-security/src/operations/{aPICollection.ts => gitHubRepos.ts} (53%) create mode 100644 sdk/security/arm-security/src/operations/gitLabGroups.ts create mode 100644 sdk/security/arm-security/src/operations/gitLabProjects.ts create mode 100644 sdk/security/arm-security/src/operations/gitLabSubgroups.ts delete mode 100644 sdk/security/arm-security/src/operations/healthReportOperations.ts delete mode 100644 sdk/security/arm-security/src/operations/ingestionSettings.ts create mode 100644 sdk/security/arm-security/src/operations/sensitivitySettings.ts create mode 100644 sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts delete mode 100644 sdk/security/arm-security/src/operationsInterfaces/aPICollection.ts delete mode 100644 sdk/security/arm-security/src/operationsInterfaces/aPICollectionOffboarding.ts delete mode 100644 sdk/security/arm-security/src/operationsInterfaces/aPICollectionOnboarding.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/aPICollections.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/azureDevOpsProjects.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/devOpsConfigurations.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/devOpsOperationResults.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/gitHubOwners.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/gitHubRepos.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/gitLabGroups.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/gitLabProjects.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts delete mode 100644 sdk/security/arm-security/src/operationsInterfaces/healthReportOperations.ts delete mode 100644 sdk/security/arm-security/src/operationsInterfaces/ingestionSettings.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/serverVulnerabilityAssessmentsSettings.ts create mode 100644 sdk/security/arm-security/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 605e58ed99f9..ad088e64c1b7 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4614,7 +4614,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20230925 + typescript: 5.3.0-dev.20230926 dev: false /eastasianwidth@0.2.0: @@ -9440,8 +9440,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20230925: - resolution: {integrity: sha512-Q8U1zNAGD0BSaVuaHmjhYB8sM5VyTcp0y6IM4Q3v40uLX3MysM5yLl6qSxzA3PTzXmQmahLy+08aM3cZA0hR5A==} + /typescript@5.3.0-dev.20230926: + resolution: {integrity: sha512-Di7UazUfEeXHROiWH/D24zvK848YbcJAvO3CKEoQK4d3WSNxkbqWW5ipmr8SF6srpZ1achwisBGUI1HFbttRZQ==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -16072,7 +16072,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-rLnxAZqzyuzoGWfO088U2Mi+Wgw4MigZEJ/1L23DClklxcYEirGtLUvzbEWfyIaNFtTYj2JSBYpEVqcIPCt/uA==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-6EWavZe1A1DTrOsRwVVZ1BKrkOEzyaHCWeUiMjrupVqNjlIs5JdZ91Ee+lndU5nFcKJJm6ELyVwKy0WfgAmoUw==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -16089,7 +16089,7 @@ packages: dotenv: 16.3.1 mkdirp: 2.1.6 mocha: 7.2.0 - rimraf: 3.0.2 + rimraf: 5.0.1 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@14.18.56)(rollup@2.79.1) ts-node: 10.9.1(@types/node@14.18.56)(typescript@5.0.4) @@ -16099,6 +16099,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-securitydevops.tgz: @@ -18927,7 +18928,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-rBFuADWXTPsofV6O2WYzSKOi5L4yNWQzSP68ck4O9zS3ylBqGJPd/Js/faKzqcsGQpqY186iLNo6ki7X3umZuA==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-FrhtE/eDNTlpDz/J88Ft4svwmFmzvpZKeFZAA1MougIReSVhrTQpL5muVKyRbb5JAKTGrKrV6791YVG8E3TVFg==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -21405,7 +21406,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-sDTxW6LZDflTlIWKcvR2AY05PhQt/L8jSfDT/9Wf5s9hW06br+jacvOWuHkLzuq6P3t4uNsKMWyqKn3sV6m/NQ==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-zebeyI9M+2uB3hb+47C0SxnwN8/jcwpk14WKVWzNVcGXIlXHcYV3hIvbPSwZ8iik+OCR1W0thMTLz2JIj5lMig==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: diff --git a/sdk/security/arm-security/CHANGELOG.md b/sdk/security/arm-security/CHANGELOG.md index af1cf62703c7..9f8b428566fd 100644 --- a/sdk/security/arm-security/CHANGELOG.md +++ b/sdk/security/arm-security/CHANGELOG.md @@ -1,37 +1,38 @@ # Release History - -## 6.0.0-beta.5 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 6.0.0-beta.4 (2023-04-11) + +## 6.0.0-beta.5 (2023-09-26) **Features** - - Added operation group APICollection - - Added operation group APICollectionOffboarding - - Added operation group APICollectionOnboarding + - 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 DefenderForStorage + - Added operation group DevOpsConfigurations + - Added operation group DevOpsOperationResults + - Added operation group GitHubOwners + - Added operation group GitHubRepos + - Added operation group GitLabGroups + - Added operation group GitLabProjects + - Added operation group GitLabSubgroups - Added operation group GovernanceAssignments - Added operation group GovernanceRules - - Added operation group HealthReportOperations - Added operation group HealthReports - Added operation group SecurityConnectorApplication - Added operation group SecurityConnectorApplications - Added operation group SecurityOperators + - Added operation group SensitivitySettings + - Added operation group ServerVulnerabilityAssessmentsSettings - Added operation Alerts.beginSimulate - Added operation Alerts.beginSimulateAndWait - Added operation Alerts.updateResourceGroupLevelStateToInProgress - Added operation Alerts.updateSubscriptionLevelStateToInProgress - Added Interface AadExternalSecuritySolution - Added Interface AadSolutionProperties + - Added Interface ActionableRemediation - Added Interface ActiveConnectionsNotInAllowedRange - Added Interface AdaptiveApplicationControlGroup - Added Interface AdaptiveNetworkHardening @@ -48,13 +49,18 @@ - Added Interface AmqpC2DMessagesNotInAllowedRange - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface APICollectionGetOptionalParams - - Added Interface APICollectionListNextOptionalParams - - Added Interface APICollectionListOptionalParams - - Added Interface APICollectionOffboardingDeleteOptionalParams - - Added Interface APICollectionOnboardingCreateOptionalParams - - Added Interface ApiCollectionResponse - - Added Interface ApiCollectionResponseList + - Added Interface 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 @@ -67,6 +73,7 @@ - Added Interface AssessmentStatusResponse - Added Interface AtaExternalSecuritySolution - Added Interface AtaSolutionProperties + - Added Interface Authorization - Added Interface Automation - Added Interface AutomationActionEventHub - Added Interface AutomationActionLogicApp @@ -78,9 +85,40 @@ - Added Interface AwsOrganizationalData - Added Interface AwsOrganizationalDataMaster - Added Interface AwsOrganizationalDataMember + - Added Interface AzureDevOpsOrg + - Added Interface AzureDevOpsOrganizationConfiguration + - Added Interface AzureDevOpsOrgListResponse + - Added Interface AzureDevOpsOrgProperties + - Added Interface AzureDevOpsOrgsCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsOrgsGetOptionalParams + - Added Interface AzureDevOpsOrgsListAvailableOptionalParams + - Added Interface AzureDevOpsOrgsListNextOptionalParams + - Added Interface AzureDevOpsOrgsListOptionalParams + - Added Interface AzureDevOpsOrgsUpdateOptionalParams + - Added Interface AzureDevOpsProject + - Added Interface AzureDevOpsProjectConfiguration + - Added Interface AzureDevOpsProjectListResponse + - Added Interface AzureDevOpsProjectProperties + - Added Interface AzureDevOpsProjectsCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsProjectsGetOptionalParams + - Added Interface AzureDevOpsProjectsListNextOptionalParams + - Added Interface AzureDevOpsProjectsListOptionalParams + - Added Interface AzureDevOpsProjectsUpdateOptionalParams + - Added Interface AzureDevOpsReposCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsReposGetOptionalParams + - Added Interface AzureDevOpsRepository + - Added Interface AzureDevOpsRepositoryListResponse + - Added Interface AzureDevOpsRepositoryProperties + - Added Interface AzureDevOpsReposListNextOptionalParams + - Added Interface AzureDevOpsReposListOptionalParams + - Added Interface AzureDevOpsReposUpdateOptionalParams - Added Interface AzureDevOpsScopeEnvironmentData - Added Interface AzureResourceDetails - Added Interface AzureResourceIdentifier + - Added Interface AzureServersSetting + - Added Interface BaseResourceConfiguration + - Added Interface BuiltInInfoType + - Added Interface CategoryConfiguration - Added Interface CefExternalSecuritySolution - Added Interface CefSolutionProperties - Added Interface Compliance @@ -142,8 +180,21 @@ - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - Added Interface DefenderForServersGcpOfferingVmScanners - Added Interface DefenderForServersGcpOfferingVmScannersConfiguration + - Added Interface DefenderForStorageCreateOptionalParams + - Added Interface DefenderForStorageGetOptionalParams + - Added Interface DefenderForStorageSetting - Added Interface DenylistCustomAlertRule - Added Interface DeviceSecurityGroup + - Added Interface DevOpsConfiguration + - Added Interface DevOpsConfigurationListResponse + - Added Interface DevOpsConfigurationProperties + - Added Interface DevOpsConfigurationsCreateOrUpdateOptionalParams + - Added Interface DevOpsConfigurationsDeleteOptionalParams + - Added Interface DevOpsConfigurationsGetOptionalParams + - Added Interface DevOpsConfigurationsListNextOptionalParams + - Added Interface DevOpsConfigurationsListOptionalParams + - Added Interface DevOpsConfigurationsUpdateOptionalParams + - Added Interface DevOpsOperationResultsGetOptionalParams - Added Interface DirectMethodInvokesNotInAllowedRange - Added Interface DiscoveredSecuritySolution - Added Interface EnvironmentData @@ -163,8 +214,42 @@ - Added Interface GcpOrganizationalDataOrganization - Added Interface GcpProjectDetails - Added Interface GcpProjectEnvironmentData + - Added Interface GetSensitivitySettingsListResponse + - Added Interface GetSensitivitySettingsOptionalParams + - Added Interface GetSensitivitySettingsResponse + - Added Interface GetSensitivitySettingsResponseProperties + - Added Interface GetSensitivitySettingsResponsePropertiesMipInformation + - Added Interface GitHubOwner + - Added Interface GitHubOwnerConfiguration + - Added Interface GitHubOwnerListResponse + - Added Interface GitHubOwnerProperties + - Added Interface GitHubOwnersGetOptionalParams + - Added Interface GitHubOwnersListAvailableOptionalParams + - Added Interface GitHubOwnersListNextOptionalParams + - Added Interface GitHubOwnersListOptionalParams + - Added Interface GitHubReposGetOptionalParams + - Added Interface GitHubRepository + - Added Interface GitHubRepositoryListResponse + - Added Interface GitHubRepositoryProperties + - Added Interface GitHubReposListNextOptionalParams + - Added Interface GitHubReposListOptionalParams - Added Interface GithubScopeEnvironmentData + - Added Interface GitLabGroup + - Added Interface GitLabGroupConfiguration + - Added Interface GitLabGroupListResponse + - Added Interface GitLabGroupProperties + - Added Interface GitLabGroupsGetOptionalParams + - Added Interface GitLabGroupsListAvailableOptionalParams + - Added Interface GitLabGroupsListNextOptionalParams + - Added Interface GitLabGroupsListOptionalParams + - Added Interface GitLabProject + - Added Interface GitLabProjectListResponse + - Added Interface GitLabProjectProperties + - Added Interface GitLabProjectsGetOptionalParams + - Added Interface GitLabProjectsListNextOptionalParams + - Added Interface GitLabProjectsListOptionalParams - Added Interface GitlabScopeEnvironmentData + - Added Interface GitLabSubgroupsListOptionalParams - Added Interface GovernanceAssignment - Added Interface GovernanceAssignmentAdditionalData - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams @@ -191,7 +276,7 @@ - Added Interface GovernanceRulesOperationResultsOptionalParams - Added Interface HealthDataClassification - Added Interface HealthReport - - Added Interface HealthReportGetOptionalParams + - Added Interface HealthReportsGetOptionalParams - Added Interface HealthReportsList - Added Interface HealthReportsListNextOptionalParams - Added Interface HealthReportsListOptionalParams @@ -201,13 +286,14 @@ - Added Interface Identity - Added Interface InformationProtectionAwsOffering - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting + - Added Interface InfoType - Added Interface IoTSecurityAggregatedAlert - Added Interface IoTSecurityAggregatedRecommendation - Added Interface IoTSecuritySolutionAnalyticsModel - Added Interface IoTSecuritySolutionModel - Added Interface Issue - Added Interface JitNetworkAccessPolicy + - Added Interface Label - Added Interface ListCustomAlertRule - Added Interface LocalUserNotAllowed - Added Interface LogAnalyticsIdentifier @@ -219,13 +305,18 @@ - Added Interface OnPremiseSqlResourceDetails - Added Interface OperationResultAutoGenerated - Added Interface OperationStatus + - Added Interface OperationStatusAutoGenerated + - Added Interface OperationStatusResult - Added Interface Pricing - Added Interface ProcessNotAllowed + - Added Interface ProxyResource - Added Interface QueuePurgesNotInAllowedRange - Added Interface RegulatoryComplianceAssessment - Added Interface RegulatoryComplianceControl - Added Interface RegulatoryComplianceStandard - Added Interface RemediationEta + - Added Interface ResourceAutoGenerated + - Added Interface ResourceAutoGenerated2 - Added Interface ResourceDetailsAutoGenerated - Added Interface RuleResults - Added Interface Scan @@ -259,12 +350,21 @@ - Added Interface SecuritySolutionsReferenceData - Added Interface SecuritySubAssessment - Added Interface SecurityTask + - Added Interface SensitivitySettingsListOptionalParams - Added Interface ServerVulnerabilityAssessment + - Added Interface ServerVulnerabilityAssessmentsSetting + - Added Interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsList + - Added Interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams - Added Interface ServerVulnerabilityProperties - Added Interface Setting - Added Interface Software - Added Interface SqlServerVulnerabilityProperties - Added Interface StatusAutoGenerated + - Added Interface TargetBranchConfiguration - Added Interface ThresholdCustomAlertRule - Added Interface TimeWindowCustomAlertRule - Added Interface TopologyResource @@ -272,23 +372,74 @@ - Added Interface TwinUpdatesNotInAllowedRange - Added Interface UnauthorizedOperationsNotInAllowedRange - Added Interface UpdateIotSecuritySolutionData + - Added Interface UpdateSensitivitySettingsOptionalParams + - Added Interface UpdateSensitivitySettingsRequest - Added Interface WorkspaceSetting - - Added Type Alias APICollectionGetResponse - - Added Type Alias APICollectionListNextResponse - - Added Type Alias APICollectionListResponse - - Added Type Alias APICollectionOnboardingCreateResponse + - Added Type Alias ActionableRemediationState + - 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 AutoDiscovery - Added Type Alias AwsOrganizationalDataUnion + - Added Type Alias AzureDevOpsOrgsCreateOrUpdateResponse + - Added Type Alias AzureDevOpsOrgsGetResponse + - Added Type Alias AzureDevOpsOrgsListAvailableResponse + - Added Type Alias AzureDevOpsOrgsListNextResponse + - Added Type Alias AzureDevOpsOrgsListResponse + - Added Type Alias AzureDevOpsOrgsUpdateResponse + - Added Type Alias AzureDevOpsProjectsCreateOrUpdateResponse + - Added Type Alias AzureDevOpsProjectsGetResponse + - Added Type Alias AzureDevOpsProjectsListNextResponse + - Added Type Alias AzureDevOpsProjectsListResponse + - Added Type Alias AzureDevOpsProjectsUpdateResponse + - Added Type Alias AzureDevOpsReposCreateOrUpdateResponse + - Added Type Alias AzureDevOpsReposGetResponse + - Added Type Alias AzureDevOpsReposListNextResponse + - Added Type Alias AzureDevOpsReposListResponse + - Added Type Alias AzureDevOpsReposUpdateResponse - Added Type Alias Code - Added Type Alias ConnectionType + - Added Type Alias DefenderForStorageCreateResponse + - Added Type Alias DefenderForStorageGetResponse + - Added Type Alias DesiredOnboardingState + - Added Type Alias DevOpsConfigurationsCreateOrUpdateResponse + - Added Type Alias DevOpsConfigurationsGetResponse + - Added Type Alias DevOpsConfigurationsListNextResponse + - Added Type Alias DevOpsConfigurationsListResponse + - Added Type Alias DevOpsConfigurationsUpdateResponse + - Added Type Alias DevOpsOperationResultsGetResponse + - Added Type Alias DevOpsProvisioningState - Added Type Alias EnvironmentDataUnion - Added Type Alias EnvironmentType - Added Type Alias GcpOrganizationalDataUnion + - Added Type Alias GetSensitivitySettingsOperationResponse + - Added Type Alias GitHubOwnersGetResponse + - Added Type Alias GitHubOwnersListAvailableResponse + - Added Type Alias GitHubOwnersListNextResponse + - Added Type Alias GitHubOwnersListResponse + - Added Type Alias GitHubReposGetResponse + - Added Type Alias GitHubReposListNextResponse + - Added Type Alias GitHubReposListResponse + - Added Type Alias GitLabGroupsGetResponse + - Added Type Alias GitLabGroupsListAvailableResponse + - Added Type Alias GitLabGroupsListNextResponse + - Added Type Alias GitLabGroupsListResponse + - Added Type Alias GitLabProjectsGetResponse + - Added Type Alias GitLabProjectsListNextResponse + - Added Type Alias GitLabProjectsListResponse + - Added Type Alias GitLabSubgroupsListResponse - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - Added Type Alias GovernanceAssignmentsGetResponse - Added Type Alias GovernanceAssignmentsListNextResponse @@ -303,15 +454,18 @@ - Added Type Alias GovernanceRulesOperationResultsResponse - Added Type Alias GovernanceRuleSourceResourceType - Added Type Alias GovernanceRuleType - - Added Type Alias HealthReportGetResponse + - Added Type Alias HealthReportsGetResponse - Added Type Alias HealthReportsListNextResponse - Added Type Alias HealthReportsListResponse + - Added Type Alias InheritFromParentState - Added Type Alias IsEnabled - Added Type Alias MinimalSeverity + - Added Type Alias MipIntegrationStatus + - Added Type Alias OnboardingState - Added Type Alias OperationResult - Added Type Alias Roles + - Added Type Alias RuleCategory - Added Type Alias ScanningMode - - Added Type Alias ScopeName - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - Added Type Alias SecurityConnectorApplicationGetResponse - Added Type Alias SecurityConnectorApplicationsListNextResponse @@ -319,29 +473,52 @@ - Added Type Alias SecurityOperatorsCreateOrUpdateResponse - Added Type Alias SecurityOperatorsGetResponse - Added Type Alias SecurityOperatorsListResponse + - Added Type Alias SensitivitySettingsListResponse + - Added Type Alias ServerVulnerabilityAssessmentsAzureSettingSelectedProvider + - Added Type Alias ServerVulnerabilityAssessmentsSettingKind + - Added Type Alias ServerVulnerabilityAssessmentsSettingKindName + - Added Type Alias ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsGetResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingUnion + - Added Type Alias SettingNameAutoGenerated - Added Type Alias StatusName - Added Type Alias SubPlan - Added Type Alias Type + - Added Type Alias UpdateSensitivitySettingsResponse - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter configuration - Interface ScanProperties has a new optional parameter lastScanTime - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" | "CspmMonitorGitLab" | "DefenderForDevOpsGitLab" + - Added Enum KnownActionableRemediationState + - Added Enum KnownAnnotateDefaultBranchState - Added Enum KnownApplicationConditionOperator - Added Enum KnownApplicationSourceResourceType + - Added Enum KnownAutoDiscovery - Added Enum KnownCode + - Added Enum KnownDesiredOnboardingState + - Added Enum KnownDevOpsProvisioningState - Added Enum KnownEnvironmentType - Added Enum KnownGovernanceRuleConditionOperator - Added Enum KnownGovernanceRuleOwnerSourceType - Added Enum KnownGovernanceRuleSourceResourceType - Added Enum KnownGovernanceRuleType + - Added Enum KnownInheritFromParentState - Added Enum KnownIsEnabled - Added Enum KnownMinimalSeverity + - Added Enum KnownMipIntegrationStatus + - Added Enum KnownOnboardingState - Added Enum KnownOperationResult - Added Enum KnownRoles + - Added Enum KnownRuleCategory - Added Enum KnownScanningMode - - Added Enum KnownScopeName + - Added Enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider + - Added Enum KnownServerVulnerabilityAssessmentsSettingKind + - Added Enum KnownServerVulnerabilityAssessmentsSettingKindName + - Added Enum KnownSettingNameAutoGenerated - Added Enum KnownStatusName - Added Enum KnownSubPlan - Added Enum KnownType @@ -368,9 +545,11 @@ **Breaking Changes** + - Removed operation group IngestionSettings - Removed operation Alerts.simulate - Removed operation SecurityContacts.update - Operation AllowedConnections.get has a new signature + - Class SecurityCenter has a new signature - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter @@ -386,1001 +565,11 @@ - Interface TasksListByResourceGroupNextOptionalParams no longer has parameter filter - Interface TasksListNextOptionalParams no longer has parameter filter - Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[] + - Class SecurityCenter no longer has parameter ingestionSettings - Removed Enum KnownAlertNotifications - Removed Enum KnownAlertsToAdmins -## 6.0.0-beta.3 (2023-03-21) -**Features** - - - Added operation group APICollection - - Added operation group APICollectionOffboarding - - Added operation group APICollectionOnboarding - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRules - - Added operation group HealthReportOperations - - Added operation group HealthReports - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface APICollectionGetOptionalParams - - Added Interface APICollectionListNextOptionalParams - - Added Interface APICollectionListOptionalParams - - Added Interface APICollectionOffboardingDeleteOptionalParams - - Added Interface APICollectionOnboardingCreateOptionalParams - - Added Interface ApiCollectionResponse - - Added Interface ApiCollectionResponseList - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AwsEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderCspmAwsOffering - - Added Interface DefenderCspmAwsOfferingVmScanners - - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - - Added Interface DefenderCspmGcpOffering - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingRds - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForDevOpsAzureDevOpsOffering - - Added Interface DefenderForDevOpsGithubOffering - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface EnvironmentDetails - - Added Interface ErrorDetail - - Added Interface ErrorDetailAutoGenerated - - Added Interface ErrorResponse - - Added Interface ErrorResponseAutoGenerated - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleMetadata - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteHeaders - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesExecuteHeaders - - Added Interface GovernanceRulesExecuteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesListNextOptionalParams - - Added Interface GovernanceRulesListOptionalParams - - Added Interface GovernanceRulesOperationResultsHeaders - - Added Interface GovernanceRulesOperationResultsOptionalParams - - Added Interface HealthDataClassification - - Added Interface HealthReport - - Added Interface HealthReportGetOptionalParams - - Added Interface HealthReportsList - - Added Interface HealthReportsListNextOptionalParams - - Added Interface HealthReportsListOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface Issue - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface OperationResultAutoGenerated - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface ResourceDetailsAutoGenerated - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface StatusAutoGenerated - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias APICollectionGetResponse - - Added Type Alias APICollectionListNextResponse - - Added Type Alias APICollectionListResponse - - Added Type Alias APICollectionOnboardingCreateResponse - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias ConnectionType - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesExecuteResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRulesListNextResponse - - Added Type Alias GovernanceRulesListResponse - - Added Type Alias GovernanceRulesOperationResultsResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRuleType - - Added Type Alias HealthReportGetResponse - - Added Type Alias HealthReportsListNextResponse - - Added Type Alias HealthReportsListResponse - - Added Type Alias MinimalSeverity - - Added Type Alias OperationResult - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias ScopeName - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias StatusName - - Added Type Alias SubPlan - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Interface ScanProperties has a new optional parameter lastScanTime - - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownOperationResult - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownScopeName - - Added Enum KnownStatusName - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderCspmAws - - Enum KnownOfferingType has a new value DefenderCspmGcp - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - - Enum KnownOfferingType has a new value DefenderForDevOpsGithub - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - - Added function getContinuationToken - - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType - - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter - - Interface IotSecuritySolutionListBySubscriptionNextOptionalParams no longer has parameter filter - - Interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams no longer has parameter top - - Interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams no longer has parameter top - - Interface RegulatoryComplianceAssessmentsListNextOptionalParams no longer has parameter filter - - Interface RegulatoryComplianceControlsListNextOptionalParams no longer has parameter filter - - Interface RegulatoryComplianceStandardsListNextOptionalParams no longer has parameter filter - - Interface SecureScoreControlsListBySecureScoreNextOptionalParams no longer has parameter expand - - Interface SecureScoreControlsListNextOptionalParams no longer has parameter expand - - Interface TasksListByHomeRegionNextOptionalParams no longer has parameter filter - - Interface TasksListByResourceGroupNextOptionalParams no longer has parameter filter - - Interface TasksListNextOptionalParams no longer has parameter filter - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Operation AllowedConnections.get has a new signature - - Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[] - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - -## 6.0.0-beta.2 (2022-11-15) - -**Features** - - - Added operation group APICollection - - Added operation group APICollectionOffboarding - - Added operation group APICollectionOnboarding - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRuleOperations - - Added operation group GovernanceRules - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation group SecurityConnectorGovernanceRule - - Added operation group SecurityConnectorGovernanceRules - - Added operation group SecurityConnectorGovernanceRulesExecuteStatus - - Added operation group SubscriptionGovernanceRulesExecuteStatus - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface APICollectionGetOptionalParams - - Added Interface APICollectionListNextOptionalParams - - Added Interface APICollectionListOptionalParams - - Added Interface APICollectionOffboardingDeleteOptionalParams - - Added Interface APICollectionOnboardingCreateOptionalParams - - Added Interface ApiCollectionResponse - - Added Interface ApiCollectionResponseList - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AwsEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderCspmAwsOffering - - Added Interface DefenderCspmAwsOfferingVmScanners - - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - - Added Interface DefenderCspmGcpOffering - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingRds - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForDevOpsAzureDevOpsOffering - - Added Interface DefenderForDevOpsGithubOffering - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface ErrorDetail - - Added Interface ErrorResponse - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExecuteRuleStatus - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleListNextOptionalParams - - Added Interface GovernanceRuleListOptionalParams - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListNextOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListOptionalParams - - Added Interface SecurityConnectorGovernanceRulesCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorGovernanceRulesDeleteOptionalParams - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetHeaders - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface SecurityConnectorGovernanceRulesGetOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetHeaders - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias APICollectionGetResponse - - Added Type Alias APICollectionListNextResponse - - Added Type Alias APICollectionListResponse - - Added Type Alias APICollectionOnboardingCreateResponse - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias ConnectionType - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleListNextResponse - - Added Type Alias GovernanceRuleListResponse - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSecurityConnectorResponse - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSubscriptionResponse - - Added Type Alias GovernanceRuleType - - Added Type Alias MinimalSeverity - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias SecurityConnectorGovernanceRuleListNextResponse - - Added Type Alias SecurityConnectorGovernanceRuleListResponse - - Added Type Alias SecurityConnectorGovernanceRulesCreateOrUpdateResponse - - Added Type Alias SecurityConnectorGovernanceRulesExecuteStatusGetResponse - - Added Type Alias SecurityConnectorGovernanceRulesGetResponse - - Added Type Alias SubPlan - - Added Type Alias SubscriptionGovernanceRulesExecuteStatusGetResponse - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Class SecurityCenter has a new parameter aPICollection - - Class SecurityCenter has a new parameter aPICollectionOffboarding - - Class SecurityCenter has a new parameter aPICollectionOnboarding - - Class SecurityCenter has a new parameter applicationOperations - - Class SecurityCenter has a new parameter applications - - Class SecurityCenter has a new parameter governanceAssignments - - Class SecurityCenter has a new parameter governanceRuleOperations - - Class SecurityCenter has a new parameter governanceRules - - Class SecurityCenter has a new parameter securityConnectorApplication - - Class SecurityCenter has a new parameter securityConnectorApplications - - Class SecurityCenter has a new parameter securityConnectorGovernanceRule - - Class SecurityCenter has a new parameter securityConnectorGovernanceRules - - Class SecurityCenter has a new parameter securityConnectorGovernanceRulesExecuteStatus - - Class SecurityCenter has a new parameter subscriptionGovernanceRulesExecuteStatus - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderCspmAws - - Enum KnownOfferingType has a new value DefenderCspmGcp - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - - Enum KnownOfferingType has a new value DefenderForDevOpsGithub - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Operation AllowedConnections.get has a new signature - - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - -## 6.0.0-beta.1 (2022-09-14) - -**Features** - - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRuleOperations - - Added operation group GovernanceRules - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation group SecurityConnectorGovernanceRule - - Added operation group SecurityConnectorGovernanceRules - - Added operation group SecurityConnectorGovernanceRulesExecuteStatus - - Added operation group SubscriptionGovernanceRulesExecuteStatus - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AWSEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExecuteRuleStatus - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleListNextOptionalParams - - Added Interface GovernanceRuleListOptionalParams - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListNextOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListOptionalParams - - Added Interface SecurityConnectorGovernanceRulesCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorGovernanceRulesDeleteOptionalParams - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetHeaders - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface SecurityConnectorGovernanceRulesGetOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetHeaders - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleListNextResponse - - Added Type Alias GovernanceRuleListResponse - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSecurityConnectorResponse - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSubscriptionResponse - - Added Type Alias GovernanceRuleType - - Added Type Alias MinimalSeverity - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias SecurityConnectorGovernanceRuleListNextResponse - - Added Type Alias SecurityConnectorGovernanceRuleListResponse - - Added Type Alias SecurityConnectorGovernanceRulesCreateOrUpdateResponse - - Added Type Alias SecurityConnectorGovernanceRulesExecuteStatusGetResponse - - Added Type Alias SecurityConnectorGovernanceRulesGetResponse - - Added Type Alias SubPlan - - Added Type Alias SubscriptionGovernanceRulesExecuteStatusGetResponse - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Class SecurityCenter has a new parameter applicationOperations - - Class SecurityCenter has a new parameter applications - - Class SecurityCenter has a new parameter governanceAssignments - - Class SecurityCenter has a new parameter governanceRuleOperations - - Class SecurityCenter has a new parameter governanceRules - - Class SecurityCenter has a new parameter securityConnectorApplication - - Class SecurityCenter has a new parameter securityConnectorApplications - - Class SecurityCenter has a new parameter securityConnectorGovernanceRule - - Class SecurityCenter has a new parameter securityConnectorGovernanceRules - - Class SecurityCenter has a new parameter securityConnectorGovernanceRulesExecuteStatus - - Class SecurityCenter has a new parameter subscriptionGovernanceRulesExecuteStatus - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - ## 5.0.0 (2022-03-30) **Features** diff --git a/sdk/security/arm-security/_meta.json b/sdk/security/arm-security/_meta.json index 1206f6811cb9..1194608cd332 100644 --- a/sdk/security/arm-security/_meta.json +++ b/sdk/security/arm-security/_meta.json @@ -1,8 +1,8 @@ { - "commit": "7561be58288fad1433038db3f1ccd9794773a03e", + "commit": "78afff8045393ad1cb373f418bbe3b498fc3cedd", "readme": "specification/security/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\security\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/security/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.10" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index b0fce82dcabc..e017c4898b53 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -8,12 +8,12 @@ "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -38,9 +38,9 @@ "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", - "@azure/identity": "^3.3.0", + "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", @@ -48,8 +48,8 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -84,7 +84,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -112,13 +112,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security" +} \ No newline at end of file diff --git a/sdk/security/arm-security/review/arm-security.api.md b/sdk/security/arm-security/review/arm-security.api.md index 142e3d7c90b7..7f403de5ed3d 100644 --- a/sdk/security/arm-security/review/arm-security.api.md +++ b/sdk/security/arm-security/review/arm-security.api.md @@ -27,6 +27,17 @@ export interface AadExternalSecuritySolution extends ExternalSecuritySolution { export interface AadSolutionProperties extends ExternalSecuritySolutionProperties, AadConnectivityStateAutoGenerated { } +// @public +export interface ActionableRemediation { + branchConfiguration?: TargetBranchConfiguration; + categoryConfigurations?: CategoryConfiguration[]; + inheritFromParentState?: InheritFromParentState; + state?: ActionableRemediationState; +} + +// @public +export type ActionableRemediationState = string; + // @public export type ActionType = string; @@ -550,67 +561,107 @@ export interface AmqpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertR } // @public -export interface APICollection { - get(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: APICollectionListOptionalParams): PagedAsyncIterableIterator; +export type AnnotateDefaultBranchState = string; + +// @public +export interface ApiCollection extends Resource { + readonly baseUrl?: string; + readonly discoveredVia?: string; + readonly displayName?: string; + readonly numberOfApiEndpoints?: number; + readonly numberOfApiEndpointsWithSensitiveDataExposed?: number; + readonly numberOfExternalApiEndpoints?: number; + readonly numberOfInactiveApiEndpoints?: number; + readonly numberOfUnauthenticatedApiEndpoints?: number; + readonly provisioningState?: ProvisioningState; + readonly sensitivityLabel?: string; +} + +// @public +export interface ApiCollectionList { + readonly nextLink?: string; + readonly value?: ApiCollection[]; +} + +// @public +export interface APICollections { + beginOnboardAzureApiManagementApi(resourceGroupName: string, serviceName: string, apiId: string, options?: APICollectionsOnboardAzureApiManagementApiOptionalParams): Promise, APICollectionsOnboardAzureApiManagementApiResponse>>; + beginOnboardAzureApiManagementApiAndWait(resourceGroupName: string, serviceName: string, apiId: string, options?: APICollectionsOnboardAzureApiManagementApiOptionalParams): Promise; + getByAzureApiManagementService(resourceGroupName: string, serviceName: string, apiId: string, options?: APICollectionsGetByAzureApiManagementServiceOptionalParams): Promise; + listByAzureApiManagementService(resourceGroupName: string, serviceName: string, options?: APICollectionsListByAzureApiManagementServiceOptionalParams): PagedAsyncIterableIterator; + listByResourceGroup(resourceGroupName: string, options?: APICollectionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: APICollectionsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + offboardAzureApiManagementApi(resourceGroupName: string, serviceName: string, apiId: string, options?: APICollectionsOffboardAzureApiManagementApiOptionalParams): Promise; } // @public -export interface APICollectionGetOptionalParams extends coreClient.OperationOptions { +export interface APICollectionsGetByAzureApiManagementServiceOptionalParams extends coreClient.OperationOptions { } // @public -export type APICollectionGetResponse = ApiCollectionResponse; +export type APICollectionsGetByAzureApiManagementServiceResponse = ApiCollection; // @public -export interface APICollectionListNextOptionalParams extends coreClient.OperationOptions { +export interface APICollectionsListByAzureApiManagementServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type APICollectionListNextResponse = ApiCollectionResponseList; +export type APICollectionsListByAzureApiManagementServiceNextResponse = ApiCollectionList; // @public -export interface APICollectionListOptionalParams extends coreClient.OperationOptions { +export interface APICollectionsListByAzureApiManagementServiceOptionalParams extends coreClient.OperationOptions { } // @public -export type APICollectionListResponse = ApiCollectionResponseList; +export type APICollectionsListByAzureApiManagementServiceResponse = ApiCollectionList; // @public -export interface APICollectionOffboarding { - delete(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionOffboardingDeleteOptionalParams): Promise; +export interface APICollectionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface APICollectionOffboardingDeleteOptionalParams extends coreClient.OperationOptions { +export type APICollectionsListByResourceGroupNextResponse = ApiCollectionList; + +// @public +export interface APICollectionsListByResourceGroupOptionalParams extends coreClient.OperationOptions { } // @public -export interface APICollectionOnboarding { - create(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionOnboardingCreateOptionalParams): Promise; +export type APICollectionsListByResourceGroupResponse = ApiCollectionList; + +// @public +export interface APICollectionsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface APICollectionOnboardingCreateOptionalParams extends coreClient.OperationOptions { +export type APICollectionsListBySubscriptionNextResponse = ApiCollectionList; + +// @public +export interface APICollectionsListBySubscriptionOptionalParams extends coreClient.OperationOptions { } // @public -export type APICollectionOnboardingCreateResponse = ApiCollectionResponse; +export type APICollectionsListBySubscriptionResponse = ApiCollectionList; // @public -export interface ApiCollectionResponse extends Resource { - additionalData?: { - [propertyName: string]: string; - }; - displayName?: string; +export interface APICollectionsOffboardAzureApiManagementApiOptionalParams extends coreClient.OperationOptions { } // @public -export interface ApiCollectionResponseList { - readonly nextLink?: string; - readonly value?: ApiCollectionResponse[]; +export interface APICollectionsOnboardAzureApiManagementApiHeaders { + // (undocumented) + location?: string; } +// @public +export interface APICollectionsOnboardAzureApiManagementApiOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type APICollectionsOnboardAzureApiManagementApiResponse = ApiCollection; + // @public export interface Application extends Resource { conditionSets?: Record[]; @@ -851,6 +902,14 @@ export type AuthenticationProvisioningState = string; // @public export type AuthenticationType = string; +// @public +export interface Authorization { + code?: string; +} + +// @public +export type AutoDiscovery = string; + // @public export interface Automation extends TrackedResource { actions?: AutomationActionUnion[]; @@ -1084,6 +1143,247 @@ export interface AwsOrganizationalDataMember extends AwsOrganizationalData { // @public (undocumented) export type AwsOrganizationalDataUnion = AwsOrganizationalData | AwsOrganizationalDataMaster | AwsOrganizationalDataMember; +// @public +export interface AzureDevOpsOrg extends ProxyResource { + properties?: AzureDevOpsOrgProperties; + readonly systemData?: SystemData; +} + +// @public +export interface AzureDevOpsOrganizationConfiguration { + autoDiscovery?: AutoDiscovery; + projectConfigs?: { + [propertyName: string]: AzureDevOpsProjectConfiguration; + }; +} + +// @public +export interface AzureDevOpsOrgListResponse { + nextLink?: string; + value?: AzureDevOpsOrg[]; +} + +// @public +export interface AzureDevOpsOrgProperties { + actionableRemediation?: ActionableRemediation; + onboardingState?: OnboardingState; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; +} + +// @public +export interface AzureDevOpsOrgs { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams): Promise, AzureDevOpsOrgsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsUpdateOptionalParams): Promise, AzureDevOpsOrgsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, orgName: string, options?: AzureDevOpsOrgsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: AzureDevOpsOrgsListOptionalParams): PagedAsyncIterableIterator; + listAvailable(resourceGroupName: string, securityConnectorName: string, options?: AzureDevOpsOrgsListAvailableOptionalParams): Promise; +} + +// @public +export interface AzureDevOpsOrgsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsOrgsCreateOrUpdateResponse = AzureDevOpsOrg; + +// @public +export interface AzureDevOpsOrgsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsOrgsGetResponse = AzureDevOpsOrg; + +// @public +export interface AzureDevOpsOrgsListAvailableOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsOrgsListAvailableResponse = AzureDevOpsOrgListResponse; + +// @public +export interface AzureDevOpsOrgsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsOrgsListNextResponse = AzureDevOpsOrgListResponse; + +// @public +export interface AzureDevOpsOrgsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsOrgsListResponse = AzureDevOpsOrgListResponse; + +// @public +export interface AzureDevOpsOrgsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsOrgsUpdateResponse = AzureDevOpsOrg; + +// @public +export interface AzureDevOpsProject extends ProxyResource { + properties?: AzureDevOpsProjectProperties; + readonly systemData?: SystemData; +} + +// @public +export interface AzureDevOpsProjectConfiguration { + autoDiscovery?: AutoDiscovery; + repositoryConfigs?: { + [propertyName: string]: BaseResourceConfiguration; + }; +} + +// @public +export interface AzureDevOpsProjectListResponse { + nextLink?: string; + value?: AzureDevOpsProject[]; +} + +// @public +export interface AzureDevOpsProjectProperties { + actionableRemediation?: ActionableRemediation; + onboardingState?: OnboardingState; + parentOrgName?: string; + readonly projectId?: string; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; +} + +// @public +export interface AzureDevOpsProjects { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, azureDevOpsProject: AzureDevOpsProject, options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams): Promise, AzureDevOpsProjectsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, azureDevOpsProject: AzureDevOpsProject, options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, azureDevOpsProject: AzureDevOpsProject, options?: AzureDevOpsProjectsUpdateOptionalParams): Promise, AzureDevOpsProjectsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, azureDevOpsProject: AzureDevOpsProject, options?: AzureDevOpsProjectsUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, options?: AzureDevOpsProjectsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, orgName: string, options?: AzureDevOpsProjectsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AzureDevOpsProjectsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsProjectsCreateOrUpdateResponse = AzureDevOpsProject; + +// @public +export interface AzureDevOpsProjectsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsProjectsGetResponse = AzureDevOpsProject; + +// @public +export interface AzureDevOpsProjectsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsProjectsListNextResponse = AzureDevOpsProjectListResponse; + +// @public +export interface AzureDevOpsProjectsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsProjectsListResponse = AzureDevOpsProjectListResponse; + +// @public +export interface AzureDevOpsProjectsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsProjectsUpdateResponse = AzureDevOpsProject; + +// @public +export interface AzureDevOpsRepos { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposCreateOrUpdateOptionalParams): Promise, AzureDevOpsReposCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposUpdateOptionalParams): Promise, AzureDevOpsReposUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, options?: AzureDevOpsReposGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, options?: AzureDevOpsReposListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AzureDevOpsReposCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsReposCreateOrUpdateResponse = AzureDevOpsRepository; + +// @public +export interface AzureDevOpsReposGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsReposGetResponse = AzureDevOpsRepository; + +// @public +export interface AzureDevOpsRepository extends ProxyResource { + properties?: AzureDevOpsRepositoryProperties; + readonly systemData?: SystemData; +} + +// @public +export interface AzureDevOpsRepositoryListResponse { + nextLink?: string; + value?: AzureDevOpsRepository[]; +} + +// @public +export interface AzureDevOpsRepositoryProperties { + actionableRemediation?: ActionableRemediation; + onboardingState?: OnboardingState; + parentOrgName?: string; + parentProjectName?: string; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + readonly repoId?: string; + readonly repoUrl?: string; + readonly visibility?: string; +} + +// @public +export interface AzureDevOpsReposListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsReposListNextResponse = AzureDevOpsRepositoryListResponse; + +// @public +export interface AzureDevOpsReposListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsReposListResponse = AzureDevOpsRepositoryListResponse; + +// @public +export interface AzureDevOpsReposUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsReposUpdateResponse = AzureDevOpsRepository; + // @public export interface AzureDevOpsScopeEnvironmentData extends EnvironmentData { environmentType: "AzureDevOpsScope"; @@ -1106,6 +1406,12 @@ export interface AzureResourceLink { readonly id?: string; } +// @public +export interface AzureServersSetting extends ServerVulnerabilityAssessmentsSetting { + kind: "AzureServersSetting"; + selectedProvider?: ServerVulnerabilityAssessmentsAzureSettingSelectedProvider; +} + // @public export interface AzureTrackedResourceLocation { location?: string; @@ -1125,18 +1431,36 @@ export interface BaselineAdjustedResult { status?: RuleStatus; } +// @public +export interface BaseResourceConfiguration { + desiredOnboardingState?: DesiredOnboardingState; +} + // @public export interface BenchmarkReference { benchmark?: string; reference?: string; } +// @public +export interface BuiltInInfoType { + id?: string; + name?: string; + type?: string; +} + // @public export type BundleType = string; // @public export type Categories = string; +// @public +export interface CategoryConfiguration { + category?: RuleCategory; + minimumSeverityLevel?: string; +} + // @public export interface CefExternalSecuritySolution extends ExternalSecuritySolution { properties?: CefSolutionProperties; @@ -1303,11 +1627,6 @@ export interface ConnectionFromIpNotAllowed extends AllowlistCustomAlertRule { ruleType: "ConnectionFromIpNotAllowed"; } -// @public -export interface ConnectionStrings { - value: IngestionConnectionString[]; -} - // @public export interface ConnectionToIpNotAllowed extends AllowlistCustomAlertRule { ruleType: "ConnectionToIpNotAllowed"; @@ -1925,12 +2244,47 @@ export interface DefenderForServersGcpOfferingVmScannersConfiguration { scanningMode?: ScanningMode; } +// @public +export interface DefenderForStorage { + create(resourceId: string, settingName: SettingNameAutoGenerated, defenderForStorageSetting: DefenderForStorageSetting, options?: DefenderForStorageCreateOptionalParams): Promise; + get(resourceId: string, settingName: SettingNameAutoGenerated, options?: DefenderForStorageGetOptionalParams): Promise; +} + +// @public +export interface DefenderForStorageCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageCreateResponse = DefenderForStorageSetting; + +// @public +export interface DefenderForStorageGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageGetResponse = DefenderForStorageSetting; + +// @public +export interface DefenderForStorageSetting extends Resource { + capGBPerMonth?: number; + isEnabledPropertiesIsEnabled?: boolean; + isEnabledPropertiesMalwareScanningOnUploadIsEnabled?: boolean; + isEnabledPropertiesSensitiveDataDiscoveryIsEnabled?: boolean; + readonly operationStatusPropertiesMalwareScanningOperationStatus?: OperationStatusAutoGenerated; + readonly operationStatusPropertiesSensitiveDataDiscoveryOperationStatus?: OperationStatusAutoGenerated; + overrideSubscriptionLevelSettings?: boolean; + scanResultsEventGridTopicResourceId?: string; +} + // @public export interface DenylistCustomAlertRule extends ListCustomAlertRule { denylistValues: string[]; ruleType: "DenylistCustomAlertRule"; } +// @public +export type DesiredOnboardingState = string; + // @public export interface DeviceSecurityGroup extends Resource { allowlistRules?: AllowlistCustomAlertRuleUnion[]; @@ -1985,6 +2339,100 @@ export interface DeviceSecurityGroupsListOptionalParams extends coreClient.Opera // @public export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; +// @public +export interface DevOpsConfiguration extends ProxyResource { + properties?: DevOpsConfigurationProperties; + readonly systemData?: SystemData; +} + +// @public +export interface DevOpsConfigurationListResponse { + nextLink?: string; + value?: DevOpsConfiguration[]; +} + +// @public +export interface DevOpsConfigurationProperties { + authorization?: Authorization; + autoDiscovery?: AutoDiscovery; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + topLevelInventoryList?: string[]; +} + +// @public +export interface DevOpsConfigurations { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, devOpsConfiguration: DevOpsConfiguration, options?: DevOpsConfigurationsCreateOrUpdateOptionalParams): Promise, DevOpsConfigurationsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, devOpsConfiguration: DevOpsConfiguration, options?: DevOpsConfigurationsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, securityConnectorName: string, options?: DevOpsConfigurationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, securityConnectorName: string, options?: DevOpsConfigurationsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, devOpsConfiguration: DevOpsConfiguration, options?: DevOpsConfigurationsUpdateOptionalParams): Promise, DevOpsConfigurationsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, devOpsConfiguration: DevOpsConfiguration, options?: DevOpsConfigurationsUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, options?: DevOpsConfigurationsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: DevOpsConfigurationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DevOpsConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DevOpsConfigurationsCreateOrUpdateResponse = DevOpsConfiguration; + +// @public +export interface DevOpsConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface DevOpsConfigurationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsConfigurationsGetResponse = DevOpsConfiguration; + +// @public +export interface DevOpsConfigurationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsConfigurationsListNextResponse = DevOpsConfigurationListResponse; + +// @public +export interface DevOpsConfigurationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsConfigurationsListResponse = DevOpsConfigurationListResponse; + +// @public +export interface DevOpsConfigurationsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DevOpsConfigurationsUpdateResponse = DevOpsConfiguration; + +// @public +export interface DevOpsOperationResults { + get(resourceGroupName: string, securityConnectorName: string, operationResultId: string, options?: DevOpsOperationResultsGetOptionalParams): Promise; +} + +// @public +export interface DevOpsOperationResultsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsOperationResultsGetResponse = OperationStatusResult; + +// @public +export type DevOpsProvisioningState = string; + // @public export type Direction = string; @@ -2285,25 +2733,308 @@ export interface GcpProjectDetails { } // @public -export interface GcpProjectEnvironmentData extends EnvironmentData { - environmentType: "GcpProject"; - organizationalData?: GcpOrganizationalDataUnion; - projectDetails?: GcpProjectDetails; +export interface GcpProjectEnvironmentData extends EnvironmentData { + environmentType: "GcpProject"; + organizationalData?: GcpOrganizationalDataUnion; + projectDetails?: GcpProjectDetails; +} + +// @public +export function getContinuationToken(page: unknown): string | undefined; + +// @public +export interface GetSensitivitySettingsListResponse { + // (undocumented) + value?: GetSensitivitySettingsResponse[]; +} + +// @public +export type GetSensitivitySettingsOperationResponse = GetSensitivitySettingsResponse; + +// @public +export interface GetSensitivitySettingsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GetSensitivitySettingsResponse { + readonly id?: string; + readonly name?: string; + properties?: GetSensitivitySettingsResponseProperties; + readonly type?: string; +} + +// @public +export interface GetSensitivitySettingsResponseProperties { + mipInformation?: GetSensitivitySettingsResponsePropertiesMipInformation; + sensitiveInfoTypesIds?: string[]; + sensitivityThresholdLabelId?: string; + sensitivityThresholdLabelOrder?: number; +} + +// @public +export interface GetSensitivitySettingsResponsePropertiesMipInformation { + builtInInfoTypes?: BuiltInInfoType[]; + customInfoTypes?: InfoType[]; + labels?: Label[]; + mipIntegrationStatus?: MipIntegrationStatus; +} + +// @public +export interface GitHubOwner extends ProxyResource { + properties?: GitHubOwnerProperties; + readonly systemData?: SystemData; +} + +// @public +export interface GitHubOwnerConfiguration { + autoDiscovery?: AutoDiscovery; + repositoryConfigs?: { + [propertyName: string]: BaseResourceConfiguration; + }; +} + +// @public +export interface GitHubOwnerListResponse { + nextLink?: string; + value?: GitHubOwner[]; +} + +// @public +export interface GitHubOwnerProperties { + readonly gitHubInternalId?: string; + onboardingState?: OnboardingState; + readonly ownerUrl?: string; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; +} + +// @public +export interface GitHubOwners { + get(resourceGroupName: string, securityConnectorName: string, ownerName: string, options?: GitHubOwnersGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: GitHubOwnersListOptionalParams): PagedAsyncIterableIterator; + listAvailable(resourceGroupName: string, securityConnectorName: string, options?: GitHubOwnersListAvailableOptionalParams): Promise; +} + +// @public +export interface GitHubOwnersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubOwnersGetResponse = GitHubOwner; + +// @public +export interface GitHubOwnersListAvailableOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubOwnersListAvailableResponse = GitHubOwnerListResponse; + +// @public +export interface GitHubOwnersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubOwnersListNextResponse = GitHubOwnerListResponse; + +// @public +export interface GitHubOwnersListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubOwnersListResponse = GitHubOwnerListResponse; + +// @public +export interface GitHubRepos { + get(resourceGroupName: string, securityConnectorName: string, ownerName: string, repoName: string, options?: GitHubReposGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, ownerName: string, options?: GitHubReposListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GitHubReposGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubReposGetResponse = GitHubRepository; + +// @public +export interface GitHubRepository extends ProxyResource { + properties?: GitHubRepositoryProperties; + readonly systemData?: SystemData; +} + +// @public +export interface GitHubRepositoryListResponse { + nextLink?: string; + value?: GitHubRepository[]; +} + +// @public +export interface GitHubRepositoryProperties { + onboardingState?: OnboardingState; + parentOwnerName?: string; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + readonly repoFullName?: string; + readonly repoId?: string; + readonly repoName?: string; + readonly repoUrl?: string; +} + +// @public +export interface GitHubReposListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubReposListNextResponse = GitHubRepositoryListResponse; + +// @public +export interface GitHubReposListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubReposListResponse = GitHubRepositoryListResponse; + +// @public +export interface GithubScopeEnvironmentData extends EnvironmentData { + environmentType: "GithubScope"; +} + +// @public +export interface GitLabGroup extends ProxyResource { + properties?: GitLabGroupProperties; + readonly systemData?: SystemData; +} + +// @public +export interface GitLabGroupConfiguration { + autoDiscovery?: AutoDiscovery; + projectConfigs?: { + [propertyName: string]: BaseResourceConfiguration; + }; +} + +// @public +export interface GitLabGroupListResponse { + nextLink?: string; + value?: GitLabGroup[]; +} + +// @public +export interface GitLabGroupProperties { + readonly fullyQualifiedFriendlyName?: string; + readonly fullyQualifiedName?: string; + onboardingState?: OnboardingState; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + readonly url?: string; +} + +// @public +export interface GitLabGroups { + get(resourceGroupName: string, securityConnectorName: string, groupFQName: string, options?: GitLabGroupsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: GitLabGroupsListOptionalParams): PagedAsyncIterableIterator; + listAvailable(resourceGroupName: string, securityConnectorName: string, options?: GitLabGroupsListAvailableOptionalParams): Promise; +} + +// @public +export interface GitLabGroupsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitLabGroupsGetResponse = GitLabGroup; + +// @public +export interface GitLabGroupsListAvailableOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitLabGroupsListAvailableResponse = GitLabGroupListResponse; + +// @public +export interface GitLabGroupsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitLabGroupsListNextResponse = GitLabGroupListResponse; + +// @public +export interface GitLabGroupsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitLabGroupsListResponse = GitLabGroupListResponse; + +// @public +export interface GitLabProject extends ProxyResource { + properties?: GitLabProjectProperties; + readonly systemData?: SystemData; +} + +// @public +export interface GitLabProjectListResponse { + nextLink?: string; + value?: GitLabProject[]; +} + +// @public +export interface GitLabProjectProperties { + readonly fullyQualifiedFriendlyName?: string; + readonly fullyQualifiedName?: string; + readonly fullyQualifiedParentGroupName?: string; + onboardingState?: OnboardingState; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + readonly url?: string; +} + +// @public +export interface GitLabProjects { + get(resourceGroupName: string, securityConnectorName: string, groupFQName: string, projectName: string, options?: GitLabProjectsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, groupFQName: string, options?: GitLabProjectsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GitLabProjectsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitLabProjectsGetResponse = GitLabProject; + +// @public +export interface GitLabProjectsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export function getContinuationToken(page: unknown): string | undefined; +export type GitLabProjectsListNextResponse = GitLabProjectListResponse; // @public -export interface GithubScopeEnvironmentData extends EnvironmentData { - environmentType: "GithubScope"; +export interface GitLabProjectsListOptionalParams extends coreClient.OperationOptions { } +// @public +export type GitLabProjectsListResponse = GitLabProjectListResponse; + // @public export interface GitlabScopeEnvironmentData extends EnvironmentData { environmentType: "GitlabScope"; } +// @public +export interface GitLabSubgroups { + list(resourceGroupName: string, securityConnectorName: string, groupFQName: string, options?: GitLabSubgroupsListOptionalParams): Promise; +} + +// @public +export interface GitLabSubgroupsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitLabSubgroupsListResponse = GitLabGroupListResponse; + // @public export interface GovernanceAssignment extends Resource { additionalData?: GovernanceAssignmentAdditionalData; @@ -2512,35 +3243,35 @@ export type GovernanceRuleType = string; export interface HealthDataClassification { component?: string; scenario?: string; - scope?: ScopeName; + scope?: string; } // @public export interface HealthReport extends Resource { affectedDefendersPlans?: string[]; + affectedDefendersSubPlans?: string[]; environmentDetails?: EnvironmentDetails; healthDataClassification?: HealthDataClassification; issues?: Issue[]; + readonly reportAdditionalData?: { + [propertyName: string]: string; + }; resourceDetails?: ResourceDetailsAutoGenerated; status?: StatusAutoGenerated; } // @public -export interface HealthReportGetOptionalParams extends coreClient.OperationOptions { +export interface HealthReports { + get(resourceId: string, healthReportName: string, options?: HealthReportsGetOptionalParams): Promise; + list(scope: string, options?: HealthReportsListOptionalParams): PagedAsyncIterableIterator; } // @public -export type HealthReportGetResponse = HealthReport; - -// @public -export interface HealthReportOperations { - get(resourceId: string, healthReportName: string, options?: HealthReportGetOptionalParams): Promise; +export interface HealthReportsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface HealthReports { - list(scope: string, options?: HealthReportsListOptionalParams): PagedAsyncIterableIterator; -} +export type HealthReportsGetResponse = HealthReport; // @public export interface HealthReportsList { @@ -2687,82 +3418,14 @@ export interface InformationType { } // @public -export interface IngestionConnectionString { - readonly location?: string; - readonly value?: string; -} - -// @public -export interface IngestionSetting extends Resource { - properties?: Record; -} - -// @public -export interface IngestionSettingList { - readonly nextLink?: string; - readonly value?: IngestionSetting[]; -} - -// @public -export interface IngestionSettings { - create(ingestionSettingName: string, ingestionSetting: IngestionSetting, options?: IngestionSettingsCreateOptionalParams): Promise; - delete(ingestionSettingName: string, options?: IngestionSettingsDeleteOptionalParams): Promise; - get(ingestionSettingName: string, options?: IngestionSettingsGetOptionalParams): Promise; - list(options?: IngestionSettingsListOptionalParams): PagedAsyncIterableIterator; - listConnectionStrings(ingestionSettingName: string, options?: IngestionSettingsListConnectionStringsOptionalParams): Promise; - listTokens(ingestionSettingName: string, options?: IngestionSettingsListTokensOptionalParams): Promise; -} - -// @public -export interface IngestionSettingsCreateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type IngestionSettingsCreateResponse = IngestionSetting; - -// @public -export interface IngestionSettingsDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface IngestionSettingsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type IngestionSettingsGetResponse = IngestionSetting; - -// @public -export interface IngestionSettingsListConnectionStringsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type IngestionSettingsListConnectionStringsResponse = ConnectionStrings; - -// @public -export interface IngestionSettingsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type IngestionSettingsListNextResponse = IngestionSettingList; - -// @public -export interface IngestionSettingsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type IngestionSettingsListResponse = IngestionSettingList; - -// @public -export interface IngestionSettingsListTokensOptionalParams extends coreClient.OperationOptions { +export interface InfoType { + description?: string; + id?: string; + name?: string; } // @public -export type IngestionSettingsListTokensResponse = IngestionSettingToken; - -// @public -export interface IngestionSettingToken { - readonly token?: string; -} +export type InheritFromParentState = string; // @public export type Intent = string; @@ -3239,6 +3902,13 @@ export enum KnownAadConnectivityState { NotLicensed = "NotLicensed" } +// @public +export enum KnownActionableRemediationState { + Disabled = "Disabled", + Enabled = "Enabled", + None = "None" +} + // @public export enum KnownActionType { EventHub = "EventHub", @@ -3283,6 +3953,12 @@ export enum KnownAlertStatus { Resolved = "Resolved" } +// @public +export enum KnownAnnotateDefaultBranchState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownApplicationConditionOperator { Contains = "Contains", @@ -3332,6 +4008,13 @@ export enum KnownAuthenticationType { GcpCredentials = "gcpCredentials" } +// @public +export enum KnownAutoDiscovery { + Disabled = "Disabled", + Enabled = "Enabled", + NotApplicable = "NotApplicable" +} + // @public export enum KnownAutoProvision { Off = "Off", @@ -3410,6 +4093,23 @@ export enum KnownDataSource { TwinData = "TwinData" } +// @public +export enum KnownDesiredOnboardingState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownDevOpsProvisioningState { + Canceled = "Canceled", + DeletionFailure = "DeletionFailure", + DeletionSuccess = "DeletionSuccess", + Failed = "Failed", + Pending = "Pending", + PendingDeletion = "PendingDeletion", + Succeeded = "Succeeded" +} + // @public export enum KnownDirection { Inbound = "Inbound", @@ -3539,6 +4239,12 @@ export enum KnownInformationProtectionPolicyName { Effective = "effective" } +// @public +export enum KnownInheritFromParentState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownIntent { Collection = "Collection", @@ -3577,6 +4283,14 @@ export enum KnownMinimalSeverity { Medium = "Medium" } +// @public +export enum KnownMipIntegrationStatus { + NoAutoLabelingRules = "noAutoLabelingRules", + NoConsent = "noConsent", + NoMipLabels = "noMipLabels", + Ok = "Ok" +} + // @public export enum KnownOfferingType { CspmMonitorAws = "CspmMonitorAws", @@ -3598,6 +4312,14 @@ export enum KnownOfferingType { InformationProtectionAws = "InformationProtectionAws" } +// @public +export enum KnownOnboardingState { + NotApplicable = "NotApplicable", + NotOnboarded = "NotOnboarded", + Onboarded = "Onboarded", + OnboardedByOtherConnector = "OnboardedByOtherConnector" +} + // @public export enum KnownOperationResult { Canceled = "Canceled", @@ -3731,6 +4453,16 @@ export enum KnownRoles { ServiceAdmin = "ServiceAdmin" } +// @public +export enum KnownRuleCategory { + Artifacts = "Artifacts", + Code = "Code", + Containers = "Containers", + Dependencies = "Dependencies", + IaC = "IaC", + Secrets = "Secrets" +} + // @public export enum KnownRuleSeverity { High = "High", @@ -3774,14 +4506,6 @@ export enum KnownScanTriggerType { Recurring = "Recurring" } -// @public -export enum KnownScopeName { - Clusters = "Clusters", - Connectors = "Connectors", - Unknown = "Unknown", - VirtualMachines = "VirtualMachines" -} - // @public export enum KnownSecurityFamily { Ngfw = "Ngfw", @@ -3805,6 +4529,21 @@ export enum KnownServerVulnerabilityAssessmentPropertiesProvisioningState { Succeeded = "Succeeded" } +// @public +export enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider { + MdeTvm = "MdeTvm" +} + +// @public +export enum KnownServerVulnerabilityAssessmentsSettingKind { + AzureServersSetting = "AzureServersSetting" +} + +// @public +export enum KnownServerVulnerabilityAssessmentsSettingKindName { + AzureServersSetting = "azureServersSetting" +} + // @public export enum KnownSettingKind { AlertSuppressionSetting = "AlertSuppressionSetting", @@ -3821,6 +4560,11 @@ export enum KnownSettingName { WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION" } +// @public +export enum KnownSettingNameAutoGenerated { + Current = "current" +} + // @public export enum KnownSeverity { High = "High", @@ -4076,6 +4820,13 @@ export enum KnownValueType { String = "String" } +// @public +export interface Label { + id?: string; + name?: string; + order?: number; +} + // @public export interface ListCustomAlertRule extends CustomAlertRule { ruleType: "ListCustomAlertRule" | "AllowlistCustomAlertRule" | "DenylistCustomAlertRule" | "ConnectionToIpNotAllowed" | "ConnectionFromIpNotAllowed" | "LocalUserNotAllowed" | "ProcessNotAllowed"; @@ -4166,6 +4917,9 @@ export type MdeOnboardingsListResponse = MdeOnboardingDataList; // @public export type MinimalSeverity = string; +// @public +export type MipIntegrationStatus = string; + // @public export interface MqttC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "MqttC2DMessagesNotInAllowedRange"; @@ -4184,6 +4938,9 @@ export interface MqttD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertR // @public export type OfferingType = string; +// @public +export type OnboardingState = string; + // @public export interface OnPremiseResourceDetails extends ResourceDetails { machineName: string; @@ -4257,6 +5014,24 @@ export interface OperationStatus { message?: string; } +// @public +export interface OperationStatusAutoGenerated { + code?: string; + message?: string; +} + +// @public +export interface OperationStatusResult { + endTime?: Date; + error?: ErrorDetailAutoGenerated; + id?: string; + name?: string; + operations?: OperationStatusResult[]; + percentComplete?: number; + startTime?: Date; + status: string; +} + // @public export type Operator = string; @@ -4350,6 +5125,10 @@ export type Protocol = string; // @public export type ProvisioningState = string; +// @public +export interface ProxyResource extends ResourceAutoGenerated2 { +} + // @public export interface ProxyServerProperties { ip?: string; @@ -4556,6 +5335,21 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceAutoGenerated { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface ResourceAutoGenerated2 { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + // @public export interface ResourceDetails { source: "Azure" | "OnPremise" | "OnPremiseSql"; @@ -4597,6 +5391,9 @@ export interface Rule { protocols?: TransportProtocol[]; } +// @public +export type RuleCategory = string; + // @public export interface RuleResults extends Resource { properties?: RuleResultsProperties; @@ -4703,9 +5500,6 @@ export interface ScopeElement { field?: string; } -// @public -export type ScopeName = string; - // @public export interface SecureScoreControlDefinitionItem extends Resource { readonly assessmentDefinitions?: AzureResourceLink[]; @@ -5024,6 +5818,7 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SecurityCenterOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: SecurityCenterOptionalParams); // (undocumented) adaptiveApplicationControls: AdaptiveApplicationControls; // (undocumented) @@ -5037,11 +5832,7 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) allowedConnections: AllowedConnections; // (undocumented) - aPICollection: APICollection; - // (undocumented) - aPICollectionOffboarding: APICollectionOffboarding; - // (undocumented) - aPICollectionOnboarding: APICollectionOnboarding; + aPICollections: APICollections; // (undocumented) applicationOperations: ApplicationOperations; // (undocumented) @@ -5055,6 +5846,12 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) autoProvisioningSettings: AutoProvisioningSettings; // (undocumented) + azureDevOpsOrgs: AzureDevOpsOrgs; + // (undocumented) + azureDevOpsProjects: AzureDevOpsProjects; + // (undocumented) + azureDevOpsRepos: AzureDevOpsRepos; + // (undocumented) complianceResults: ComplianceResults; // (undocumented) compliances: Compliances; @@ -5065,24 +5862,37 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) customEntityStoreAssignments: CustomEntityStoreAssignments; // (undocumented) + defenderForStorage: DefenderForStorage; + // (undocumented) deviceSecurityGroups: DeviceSecurityGroups; // (undocumented) + devOpsConfigurations: DevOpsConfigurations; + // (undocumented) + devOpsOperationResults: DevOpsOperationResults; + // (undocumented) discoveredSecuritySolutions: DiscoveredSecuritySolutions; // (undocumented) externalSecuritySolutions: ExternalSecuritySolutions; + getSensitivitySettings(options?: GetSensitivitySettingsOptionalParams): Promise; + // (undocumented) + gitHubOwners: GitHubOwners; + // (undocumented) + gitHubRepos: GitHubRepos; + // (undocumented) + gitLabGroups: GitLabGroups; + // (undocumented) + gitLabProjects: GitLabProjects; + // (undocumented) + gitLabSubgroups: GitLabSubgroups; // (undocumented) governanceAssignments: GovernanceAssignments; // (undocumented) governanceRules: GovernanceRules; // (undocumented) - healthReportOperations: HealthReportOperations; - // (undocumented) healthReports: HealthReports; // (undocumented) informationProtectionPolicies: InformationProtectionPolicies; // (undocumented) - ingestionSettings: IngestionSettings; - // (undocumented) iotSecuritySolution: IotSecuritySolution; // (undocumented) iotSecuritySolutionAnalytics: IotSecuritySolutionAnalytics; @@ -5127,8 +5937,12 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) securitySolutionsReferenceDataOperations: SecuritySolutionsReferenceDataOperations; // (undocumented) + sensitivitySettings: SensitivitySettings; + // (undocumented) serverVulnerabilityAssessmentOperations: ServerVulnerabilityAssessmentOperations; // (undocumented) + serverVulnerabilityAssessmentsSettings: ServerVulnerabilityAssessmentsSettings; + // (undocumented) settings: Settings; // (undocumented) softwareInventories: SoftwareInventories; @@ -5141,11 +5955,12 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) subAssessments: SubAssessments; // (undocumented) - subscriptionId: string; + subscriptionId?: string; // (undocumented) tasks: Tasks; // (undocumented) topology: Topology; + updateSensitivitySettings(sensitivitySettings: UpdateSensitivitySettingsRequest, options?: UpdateSensitivitySettingsOptionalParams): Promise; // (undocumented) workspaceSettings: WorkspaceSettings; } @@ -5523,6 +6338,18 @@ export interface SensitivityLabel { rank?: Rank; } +// @public +export interface SensitivitySettings { + list(options?: SensitivitySettingsListOptionalParams): Promise; +} + +// @public +export interface SensitivitySettingsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivitySettingsListResponse = GetSensitivitySettingsListResponse; + // @public export interface ServerVulnerabilityAssessment extends Resource { readonly provisioningState?: ServerVulnerabilityAssessmentPropertiesProvisioningState; @@ -5567,12 +6394,75 @@ export interface ServerVulnerabilityAssessmentOperations { // @public export type ServerVulnerabilityAssessmentPropertiesProvisioningState = string; +// @public +export type ServerVulnerabilityAssessmentsAzureSettingSelectedProvider = string; + // @public export interface ServerVulnerabilityAssessmentsList { // (undocumented) value?: ServerVulnerabilityAssessment[]; } +// @public +export interface ServerVulnerabilityAssessmentsSetting extends ResourceAutoGenerated { + kind: ServerVulnerabilityAssessmentsSettingKind; +} + +// @public +export type ServerVulnerabilityAssessmentsSettingKind = string; + +// @public +export type ServerVulnerabilityAssessmentsSettingKindName = string; + +// @public +export interface ServerVulnerabilityAssessmentsSettings { + createOrUpdate(settingKind: ServerVulnerabilityAssessmentsSettingKindName, serverVulnerabilityAssessmentsSetting: ServerVulnerabilityAssessmentsSettingUnion, options?: ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams): Promise; + delete(settingKind: ServerVulnerabilityAssessmentsSettingKindName, options?: ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams): Promise; + get(settingKind: ServerVulnerabilityAssessmentsSettingKindName, options?: ServerVulnerabilityAssessmentsSettingsGetOptionalParams): Promise; + listBySubscription(options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = ServerVulnerabilityAssessmentsSettingUnion; + +// @public +export interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerVulnerabilityAssessmentsSettingsGetResponse = ServerVulnerabilityAssessmentsSettingUnion; + +// @public +export interface ServerVulnerabilityAssessmentsSettingsList { + readonly nextLink?: string; + readonly value?: ServerVulnerabilityAssessmentsSettingUnion[]; +} + +// @public +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse = ServerVulnerabilityAssessmentsSettingsList; + +// @public +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse = ServerVulnerabilityAssessmentsSettingsList; + +// @public (undocumented) +export type ServerVulnerabilityAssessmentsSettingUnion = ServerVulnerabilityAssessmentsSetting | AzureServersSetting; + // @public export interface ServerVulnerabilityProperties extends AdditionalData { assessedResourceType: "ServerVulnerabilityAssessment"; @@ -5604,6 +6494,9 @@ export type SettingKind = string; // @public export type SettingName = string; +// @public +export type SettingNameAutoGenerated = string; + // @public export interface Settings { get(settingName: SettingName, options?: SettingsGetOptionalParams): Promise; @@ -5822,6 +6715,8 @@ export type Status = string; export interface StatusAutoGenerated { code?: StatusName; readonly firstEvaluationDate?: Date; + readonly lastScannedDate?: Date; + readonly reason?: string; readonly statusChangeDate?: Date; } @@ -5922,6 +6817,12 @@ export interface TagsResource { }; } +// @public +export interface TargetBranchConfiguration { + annotateDefaultBranch?: AnnotateDefaultBranchState; + branchNames?: string[]; +} + // @public export interface Tasks { getResourceGroupLevelTask(resourceGroupName: string, ascLocation: string, taskName: string, options?: TasksGetResourceGroupLevelTaskOptionalParams): Promise; @@ -6133,6 +7034,20 @@ export interface UpdateIotSecuritySolutionData extends TagsResource { userDefinedResources?: UserDefinedResourcesProperties; } +// @public +export interface UpdateSensitivitySettingsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface UpdateSensitivitySettingsRequest { + sensitiveInfoTypesIds: string[]; + sensitivityThresholdLabelId?: string; + sensitivityThresholdLabelOrder?: number; +} + +// @public +export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; + // @public export interface UserDefinedResourcesProperties { query: string | null; diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index d0148a6bb102..0b9f3d9537f4 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -83,6 +83,9 @@ export type ListCustomAlertRuleUnion = export type OnPremiseResourceDetailsUnion = | OnPremiseResourceDetails | OnPremiseSqlResourceDetails; +export type ServerVulnerabilityAssessmentsSettingUnion = + | ServerVulnerabilityAssessmentsSetting + | AzureServersSetting; export type TimeWindowCustomAlertRuleUnion = | TimeWindowCustomAlertRule | ActiveConnectionsNotInAllowedRange @@ -1520,6 +1523,96 @@ export interface AuthenticationDetailsProperties { readonly grantedPermissions?: PermissionProperty[]; } +/** Request to update data sensitivity settings for sensitive data discovery */ +export interface UpdateSensitivitySettingsRequest { + /** List of selected sensitive info types' IDs. */ + sensitiveInfoTypesIds: string[]; + /** The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off */ + sensitivityThresholdLabelOrder?: number; + /** The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive. */ + sensitivityThresholdLabelId?: string; +} + +/** Data sensitivity settings for sensitive data discovery */ +export interface GetSensitivitySettingsResponse { + /** + * The ID of the sensitivity settings + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The type of the sensitivity settings + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The name of the sensitivity settings + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** The sensitivity settings properties */ + properties?: GetSensitivitySettingsResponseProperties; +} + +/** The sensitivity settings properties */ +export interface GetSensitivitySettingsResponseProperties { + /** List of selected sensitive info types' IDs. */ + sensitiveInfoTypesIds?: string[]; + /** The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off */ + sensitivityThresholdLabelOrder?: number; + /** The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive. */ + sensitivityThresholdLabelId?: string; + /** Microsoft information protection built-in and custom information types, labels, and integration status. */ + mipInformation?: GetSensitivitySettingsResponsePropertiesMipInformation; +} + +/** Microsoft information protection built-in and custom information types, labels, and integration status. */ +export interface GetSensitivitySettingsResponsePropertiesMipInformation { + /** Microsoft information protection integration status */ + mipIntegrationStatus?: MipIntegrationStatus; + /** List of Microsoft information protection sensitivity labels */ + labels?: Label[]; + /** List of custom user-defined information types */ + customInfoTypes?: InfoType[]; + /** List of pre-configured sensitive information types */ + builtInInfoTypes?: BuiltInInfoType[]; +} + +/** Microsoft information protection sensitivity label */ +export interface Label { + /** The display name of the label */ + name?: string; + /** The ID of the label */ + id?: string; + /** Labels are ordered by sensitivity level. The higher the order of the label, the more sensitive it is. */ + order?: number; +} + +/** Custom user-defined information type */ +export interface InfoType { + /** Display name of the info type */ + name?: string; + /** Id of the info type */ + id?: string; + /** Description of the info type */ + description?: string; +} + +/** Pre-configured sensitive information type */ +export interface BuiltInInfoType { + /** Display name of the info type */ + name?: string; + /** Id of the info type */ + id?: string; + /** Category of the built-in info type */ + type?: string; +} + +/** A list with a single sensitivity settings resource */ +export interface GetSensitivitySettingsListResponse { + value?: GetSensitivitySettingsResponse[]; +} + /** List of security alerts */ export interface AlertList { /** describes security alert properties. */ @@ -1584,49 +1677,6 @@ export interface SettingsList { readonly nextLink?: string; } -/** List of ingestion settings */ -export interface IngestionSettingList { - /** - * List of ingestion settings - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: IngestionSetting[]; - /** - * 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; -} - -/** Configures how to correlate scan data and logs with resources associated with the subscription. */ -export interface IngestionSettingToken { - /** - * The token is used for correlating security data and logs with the resources in the subscription. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly token?: string; -} - -/** Connection string for ingesting security data and logs */ -export interface ConnectionStrings { - /** Connection strings */ - value: IngestionConnectionString[]; -} - -/** Connection string for ingesting security data and logs */ -export interface IngestionConnectionString { - /** - * The region where ingested logs and data resides - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * Connection string value - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: string; -} - /** Represents the software inventory of the virtual machine. */ export interface SoftwaresList { value?: Software[]; @@ -1760,13 +1810,13 @@ export interface ApplicationsList { readonly nextLink?: string; } -/** Page of a list of API collections as represented by Defender for APIs. */ -export interface ApiCollectionResponseList { +/** 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?: ApiCollectionResponse[]; + 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. @@ -1809,129 +1859,6 @@ export interface ErrorDetail { readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** Page of health reports list */ -export interface HealthReportsList { - /** - * Collection of health reports in this page - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: HealthReport[]; - /** - * The URI to fetch the next page - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The resource details of the health report */ -export interface ResourceDetailsAutoGenerated { - /** The status of the health report */ - source?: Source; - /** - * The azure id of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The id of the connector - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectorId?: string; -} - -/** The environment details of the resource */ -export interface EnvironmentDetails { - /** The native resource id of the resource (in case of Azure - the resource Id, in case of MC - the native resource id) */ - nativeResourceId?: string; - /** The hierarchy id of the connector (in case of Azure - the subscription Id, in case of MC - the hierarchyId id) */ - environmentHierarchyId?: string; - /** The organizational hierarchy id of the connector (in case of Azure - the subscription Id, in case of MC - the organizational hierarchyId id) */ - organizationalHierarchyId?: string; - /** The subscription Id */ - subscriptionId?: string; - /** The tenant Id */ - tenantId?: string; -} - -/** The classification of the health report */ -export interface HealthDataClassification { - /** The component describes the name of the agent/service that scans the issue */ - component?: string; - /** The scenario describes the health scenario issue of the component */ - scenario?: string; - /** The resource scope of the health report */ - scope?: ScopeName; -} - -/** The status of the health report */ -export interface StatusAutoGenerated { - /** The status of the health report */ - code?: StatusName; - /** - * The date of when the status of the health report was changed in the last time - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly statusChangeDate?: Date; - /** - * The date of when the resource of the health report was scanned in the first time - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly firstEvaluationDate?: Date; -} - -/** The issue that caused the resource to by unhealthy */ -export interface Issue { - /** The unique issue key */ - issueKey: string; - /** The issue name */ - issueName?: string; - /** The affected security values that MDC offers that will be affected by the issue, for example: recommendations, alerts, etc */ - securityValues?: string[]; - /** The issue description */ - issueDescription?: string; - /** Human readable description of what you should do to mitigate this health issue */ - remediationSteps?: string; - /** The remediation script to solve this issue */ - remediationScript?: string; - /** Additional data for the given issue. The additional data depends on the issue type */ - issueAdditionalData?: { [propertyName: string]: string }; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponseAutoGenerated { - /** The error object. */ - error?: ErrorDetailAutoGenerated; -} - -/** The error detail. */ -export interface ErrorDetailAutoGenerated { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetailAutoGenerated[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - /** A vulnerability assessment scan record properties. */ export interface ScanProperties { /** The scan trigger type. */ @@ -2174,412 +2101,976 @@ export interface Identity { type?: "SystemAssigned"; } -/** CVSS details */ -export interface Cvss { +/** A page of a server vulnerability assessments settings list */ +export interface ServerVulnerabilityAssessmentsSettingsList { /** - * CVSS base + * A collection of server vulnerability assessments settings in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly base?: number; + readonly value?: ServerVulnerabilityAssessmentsSettingUnion[]; + /** + * The URI to fetch the next page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** CVE details */ -export interface Cve { +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated { /** - * CVE title + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly title?: string; + readonly id?: string; /** - * Link url + * The name of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly link?: string; -} - -/** Vendor reference */ -export interface VendorReference { + readonly name?: string; /** - * Link title + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly title?: string; + readonly type?: string; /** - * Link url + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly link?: string; -} - -/** The solution properties (correspond to the solution kind) */ -export interface ExternalSecuritySolutionProperties { - /** Describes unknown properties. The value of an unknown property can be of "any" type. */ - [property: string]: any; - deviceVendor?: string; - deviceType?: string; - /** Represents an OMS workspace to which the solution is connected */ - workspace?: ConnectedWorkspace; -} - -/** Represents an OMS workspace to which the solution is connected */ -export interface ConnectedWorkspace { - /** Azure resource ID of the connected OMS workspace */ - id?: string; -} - -/** Describes an Azure resource with kind */ -export interface AadConnectivityStateAutoGenerated { - /** The connectivity state of the external AAD solution */ - connectivityState?: AadConnectivityState; + readonly systemData?: SystemData; } -/** Calculation result data */ -export interface SecureScoreControlScore { +/** Page of health reports list */ +export interface HealthReportsList { /** - * Maximum control score (0..10) + * Collection of health reports in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly max?: number; + readonly value?: HealthReport[]; /** - * Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the return number is 0.00 + * The URI to fetch the next page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly current?: number; + readonly nextLink?: string; +} + +/** The resource details of the health report */ +export interface ResourceDetailsAutoGenerated { + /** The status of the health report */ + source?: Source; /** - * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * The azure id of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentage?: number; + readonly id?: string; + /** + * The id of the connector + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectorId?: string; } -/** Governance rule's condition */ -export interface Condition { - /** The governance rule Condition's Property, e.g. Severity or AssessmentKey, see examples */ - property?: string; - /** The governance rule Condition's Value like severity Low, High or assessments keys, see examples */ - value?: string; - /** The governance rule Condition's Operator, for example Equals for severity or In for list of assessments, see examples */ - operator?: GovernanceRuleConditionOperator; -} - -/** Application's condition */ -export interface ApplicationCondition { - /** The application Condition's Property, e.g. ID, see examples */ - property?: string; - /** The application Condition's Value like IDs that contain some string, see examples */ - value?: string; - /** The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples */ - operator?: ApplicationConditionOperator; -} - -/** The AWS organization data */ -export interface AwsOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Organization" | "Member"; +/** The environment details of the resource */ +export interface EnvironmentDetails { + /** The native resource id of the resource (in case of Azure - the resource Id, in case of MC - the native resource id) */ + nativeResourceId?: string; + /** The hierarchy id of the connector (in case of Azure - the subscription Id, in case of MC - the hierarchyId id) */ + environmentHierarchyId?: string; + /** The organizational hierarchy id of the connector (in case of Azure - the subscription Id, in case of MC - the organizational hierarchyId id) */ + organizationalHierarchyId?: string; + /** The subscription Id */ + subscriptionId?: string; + /** The tenant Id */ + tenantId?: string; } -/** The gcpOrganization data */ -export interface GcpOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Organization" | "Member"; +/** The classification of the health report */ +export interface HealthDataClassification { + /** The component describes the name of the agent/service that scans the issue */ + component?: string; + /** The scenario describes the health scenario issue of the component */ + scenario?: string; + /** The resource scope of the health report */ + scope?: string; } -/** The details about the project represented by the security connector */ -export interface GcpProjectDetails { - /** The unique GCP Project number */ - projectNumber?: string; - /** The GCP Project id */ - projectId?: string; +/** The status of the health report */ +export interface StatusAutoGenerated { + /** The status of the health report */ + code?: StatusName; /** - * The GCP workload identity federation pool id + * The reason of the given status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workloadIdentityPoolId?: string; + readonly reason?: string; /** - * GCP project name + * The date of when the resource was scanned in the last time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly projectName?: string; + readonly lastScannedDate?: Date; + /** + * The date of when the status of the health report was changed in the last time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusChangeDate?: Date; + /** + * The date of when the resource of the health report was scanned in the first time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly firstEvaluationDate?: Date; } -/** The native cloud connection configuration */ -export interface CspmMonitorAwsOfferingNativeCloudConnection { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** The issue that caused the resource to by unhealthy */ +export interface Issue { + /** The unique issue key */ + issueKey: string; + /** The issue name */ + issueName?: string; + /** The affected security values that MDC offers that will be affected by the issue, for example: recommendations, alerts, etc */ + securityValues?: string[]; + /** The issue description */ + issueDescription?: string; + /** Human readable description of what you should do to mitigate this health issue */ + remediationSteps?: string; + /** The remediation script to solve this issue */ + remediationScript?: string; + /** Additional data for the given issue. The additional data depends on the issue type */ + issueAdditionalData?: { [propertyName: string]: string }; } -/** The kubernetes service connection configuration */ -export interface DefenderForContainersAwsOfferingKubernetesService { - /** The cloud role ARN in AWS for this feature used for provisioning resources */ - cloudRoleArn?: string; +/** A status describing the success/failure of the enablement/disablement operation. */ +export interface OperationStatusAutoGenerated { + /** The operation status code. */ + code?: string; + /** Additional information regarding the success/failure of the operation. */ + message?: string; } -/** The kubernetes to scuba connection configuration */ -export interface DefenderForContainersAwsOfferingKubernetesScubaReader { - /** The cloud role ARN in AWS for this feature used for reading data */ - cloudRoleArn?: string; +/** List of RP resources which supports pagination. */ +export interface AzureDevOpsOrgListResponse { + /** Gets or sets list of resources. */ + value?: AzureDevOpsOrg[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** The cloudwatch to kinesis connection configuration */ -export interface DefenderForContainersAwsOfferingCloudWatchToKinesis { - /** The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis */ - cloudRoleArn?: string; +/** Azure DevOps Organization properties. */ +export interface AzureDevOpsOrgProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + */ + provisioningState?: DevOpsProvisioningState; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; + /** Configuration payload for PR Annotations. */ + actionableRemediation?: ActionableRemediation; } -/** The kinesis to s3 connection configuration */ -export interface DefenderForContainersAwsOfferingKinesisToS3 { - /** The cloud role ARN in AWS used by Kinesis to transfer data into S3 */ - cloudRoleArn?: string; +/** Configuration payload for PR Annotations. */ +export interface ActionableRemediation { + /** + * ActionableRemediation Setting. + * None - the setting was never set. + * Enabled - ActionableRemediation is enabled. + * Disabled - ActionableRemediation is disabled. + */ + state?: ActionableRemediationState; + /** Gets or sets list of categories and severity levels. */ + categoryConfigurations?: CategoryConfiguration[]; + /** Repository branch configuration for PR Annotations. */ + branchConfiguration?: TargetBranchConfiguration; + /** + * Update Settings. + * + * Enabled - Resource should inherit configurations from parent. + * Disabled - Resource should not inherit configurations from parent. + */ + inheritFromParentState?: InheritFromParentState; } -/** The container vulnerability assessment configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** Severity level per category configuration for PR Annotations. */ +export interface CategoryConfiguration { + /** Gets or sets minimum severity level for a given category. */ + minimumSeverityLevel?: string; + /** + * Rule categories. + * Code - code scanning results. + * Artifact scanning results. + * Dependencies scanning results. + * IaC results. + * Secrets scanning results. + * Container scanning results. + */ + category?: RuleCategory; } -/** The container vulnerability assessment task configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** Repository branch configuration for PR Annotations. */ +export interface TargetBranchConfiguration { + /** Gets or sets branches that should have annotations. */ + branchNames?: string[]; + /** + * Configuration of PR Annotations on default branch. + * + * Enabled - PR Annotations are enabled on the resource's default branch. + * Disabled - PR Annotations are disabled on the resource's default branch. + */ + annotateDefaultBranch?: AnnotateDefaultBranchState; } -/** The Defender for servers connection configuration */ -export interface DefenderForServersAwsOfferingDefenderForServers { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated2 { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; } -/** The ARC autoprovisioning configuration */ -export interface DefenderForServersAwsOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForServersAwsOfferingArcAutoProvisioningConfiguration; +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetailAutoGenerated; } -/** Configuration for servers Arc auto provisioning */ -export interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration { - /** Optional HTTP proxy endpoint to use for the Arc agent */ - proxy?: string; - /** Optional Arc private link scope resource id to link the Arc agent */ - privateLinkScope?: string; +/** The error detail. */ +export interface ErrorDetailAutoGenerated { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetailAutoGenerated[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** The Vulnerability Assessment autoprovisioning configuration */ -export interface DefenderForServersAwsOfferingVaAutoProvisioning { - /** Is Vulnerability Assessment auto provisioning enabled */ - enabled?: boolean; - /** configuration for Vulnerability Assessment autoprovisioning */ - configuration?: DefenderForServersAwsOfferingVaAutoProvisioningConfiguration; +/** List of RP resources which supports pagination. */ +export interface AzureDevOpsProjectListResponse { + /** Gets or sets list of resources. */ + value?: AzureDevOpsProject[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** configuration for Vulnerability Assessment autoprovisioning */ -export interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration { - /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ - type?: Type; +/** Azure DevOps Project properties. */ +export interface AzureDevOpsProjectProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + */ + provisioningState?: DevOpsProvisioningState; + /** Gets or sets parent Azure DevOps Organization name. */ + parentOrgName?: string; + /** + * Gets or sets Azure DevOps Project id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly projectId?: string; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; + /** Configuration payload for PR Annotations. */ + actionableRemediation?: ActionableRemediation; } -/** The Microsoft Defender for Endpoint autoprovisioning configuration */ -export interface DefenderForServersAwsOfferingMdeAutoProvisioning { - /** Is Microsoft Defender for Endpoint auto provisioning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Endpoint autoprovisioning */ - configuration?: Record; +/** List of RP resources which supports pagination. */ +export interface AzureDevOpsRepositoryListResponse { + /** Gets or sets list of resources. */ + value?: AzureDevOpsRepository[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** configuration for the servers offering subPlan */ -export interface DefenderForServersAwsOfferingSubPlan { - /** The available sub plans */ - type?: SubPlan; +/** Azure DevOps Repository properties. */ +export interface AzureDevOpsRepositoryProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + */ + provisioningState?: DevOpsProvisioningState; + /** Gets or sets parent Azure DevOps Organization name. */ + parentOrgName?: string; + /** Gets or sets parent Azure DevOps Project name. */ + parentProjectName?: string; + /** + * Gets or sets Azure DevOps Repository id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoId?: string; + /** + * Gets or sets Azure DevOps Repository url. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoUrl?: string; + /** + * Gets or sets Azure DevOps repository visibility, whether it is public or private etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly visibility?: string; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; + /** Configuration payload for PR Annotations. */ + actionableRemediation?: ActionableRemediation; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderForServersAwsOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderForServersAwsOfferingVmScannersConfiguration; +/** List of RP resources which supports pagination. */ +export interface DevOpsConfigurationListResponse { + /** Gets or sets list of resources. */ + value?: DevOpsConfiguration[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderForServersAwsOfferingVmScannersConfiguration { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicates that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; +/** DevOps Configuration properties. */ +export interface DevOpsConfigurationProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + */ + provisioningState?: DevOpsProvisioningState; + /** Authorization payload. */ + authorization?: Authorization; + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * List of top-level inventory to select when AutoDiscovery is disabled. + * This field is ignored when AutoDiscovery is enabled. + */ + topLevelInventoryList?: string[]; } -/** 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; +/** 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; } -/** 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; +/** List of RP resources which supports pagination. */ +export interface GitHubOwnerListResponse { + /** Gets or sets list of resources. */ + value?: GitHubOwner[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** The RDS configuration */ -export interface DefenderFoDatabasesAwsOfferingRds { - /** Is RDS protection enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** GitHub Owner properties. */ +export interface GitHubOwnerProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + */ + provisioningState?: DevOpsProvisioningState; + /** + * Gets or sets GitHub Owner url. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ownerUrl?: string; + /** + * Gets or sets internal GitHub id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gitHubInternalId?: string; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; } -/** The databases data security posture management (DSPM) configuration */ -export interface DefenderFoDatabasesAwsOfferingDatabasesDspm { - /** Is databases data security posture management (DSPM) protection enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** List of RP resources which supports pagination. */ +export interface GitHubRepositoryListResponse { + /** Gets or sets list of resources. */ + value?: GitHubRepository[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** The native cloud connection configuration */ -export interface InformationProtectionAwsOfferingInformationProtection { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** GitHub Repository properties. */ +export interface GitHubRepositoryProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + */ + provisioningState?: DevOpsProvisioningState; + /** + * Gets or sets GitHub Repository id. + * + * This is a numeric id defined by Github. + * Eg: "123456". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoId?: string; + /** + * Gets or sets GitHub Repository name. + * Eg: "new-repo-1". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoName?: string; + /** + * Gets or sets GitHub Full Name. + * Repository name, prefixed with Owner name. + * Eg: "my-org/new-repo-1". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoFullName?: string; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; + /** + * Gets or sets GitHub Repository url. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoUrl?: string; + /** Gets or sets parent GitHub Owner name. */ + parentOwnerName?: string; } -/** The native cloud connection configuration */ -export interface CspmMonitorGcpOfferingNativeCloudConnection { - /** The GCP workload identity provider id for the offering */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this offering */ - serviceAccountEmailAddress?: string; +/** List of RP resources which supports pagination. */ +export interface GitLabGroupListResponse { + /** Gets or sets list of resources. */ + value?: GitLabGroup[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** The Defender for servers connection configuration */ -export interface DefenderForServersGcpOfferingDefenderForServers { - /** The workload identity provider id in GCP for this feature */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this feature */ - serviceAccountEmailAddress?: string; +/** GitLab Group properties. */ +export interface GitLabGroupProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + */ + provisioningState?: DevOpsProvisioningState; + /** + * Gets or sets the fully-qualified name of the Group object. + * + * This contains the entire namespace hierarchy where namespaces are separated by the '$' character. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedName?: string; + /** + * Gets or sets the human readable fully-qualified name of the Group object. + * + * This contains the entire namespace hierarchy as seen on GitLab UI where namespaces are separated by the '/' character. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedFriendlyName?: string; + /** + * Gets or sets the url of the GitLab Group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly url?: string; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; } -/** The ARC autoprovisioning configuration */ -export interface DefenderForServersGcpOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration; +/** 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; } -/** 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; +/** GitLab Project properties. */ +export interface GitLabProjectProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + */ + provisioningState?: DevOpsProvisioningState; + /** + * Gets or sets the fully-qualified name of the project object. + * + * This contains the entire hierarchy where entities are separated by the '$' character. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedName?: string; + /** + * Gets or sets the human readable fully-qualified name of the Project object. + * + * This contains the entire namespace hierarchy as seen on GitLab UI where entities are separated by the '/' character. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedFriendlyName?: string; + /** + * Gets or sets the fully-qualified name of the project's parent group object. + * + * This contains the entire hierarchy where namespaces are separated by the '$' character. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedParentGroupName?: string; + /** + * Gets or sets the url of the GitLab Project. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly url?: string; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; } -/** The Vulnerability Assessment autoprovisioning configuration */ -export interface DefenderForServersGcpOfferingVaAutoProvisioning { - /** Is Vulnerability Assessment auto provisioning enabled */ - enabled?: boolean; - /** configuration for Vulnerability Assessment autoprovisioning */ - configuration?: DefenderForServersGcpOfferingVaAutoProvisioningConfiguration; +/** 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; } -/** configuration for Vulnerability Assessment autoprovisioning */ -export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { - /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ - type?: Type; +/** CVSS details */ +export interface Cvss { + /** + * CVSS base + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly base?: number; } -/** The Microsoft Defender for Endpoint autoprovisioning configuration */ -export interface DefenderForServersGcpOfferingMdeAutoProvisioning { - /** Is Microsoft Defender for Endpoint auto provisioning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Endpoint autoprovisioning */ - configuration?: Record; +/** CVE details */ +export interface Cve { + /** + * CVE title + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly title?: string; + /** + * Link url + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly link?: string; } -/** configuration for the servers offering subPlan */ -export interface DefenderForServersGcpOfferingSubPlan { - /** The available sub plans */ - type?: SubPlan; +/** Vendor reference */ +export interface VendorReference { + /** + * Link title + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly title?: string; + /** + * Link url + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly link?: string; } -/** 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; +/** The solution properties (correspond to the solution kind) */ +export interface ExternalSecuritySolutionProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + deviceVendor?: string; + deviceType?: string; + /** Represents an OMS workspace to which the solution is connected */ + workspace?: ConnectedWorkspace; } -/** 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 }; +/** Represents an OMS workspace to which the solution is connected */ +export interface ConnectedWorkspace { + /** Azure resource ID of the connected OMS workspace */ + id?: string; } -/** The ARC autoprovisioning configuration */ -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; +/** Describes an Azure resource with kind */ +export interface AadConnectivityStateAutoGenerated { + /** The connectivity state of the external AAD solution */ + connectivityState?: AadConnectivityState; } -/** 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; +/** Calculation result data */ +export interface SecureScoreControlScore { + /** + * Maximum control score (0..10) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly max?: number; + /** + * Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the return number is 0.00 + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentage?: number; } -/** The native cloud connection configuration */ -export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning { - /** The service account email address in GCP for this offering */ - serviceAccountEmailAddress?: string; - /** The GCP workload identity provider id for this offering */ - workloadIdentityProviderId?: string; +/** Governance rule's condition */ +export interface Condition { + /** The governance rule Condition's Property, e.g. Severity or AssessmentKey, see examples */ + property?: string; + /** The governance rule Condition's Value like severity Low, High or assessments keys, see examples */ + value?: string; + /** The governance rule Condition's Operator, for example Equals for severity or In for list of assessments, see examples */ + operator?: GovernanceRuleConditionOperator; } -/** The native cloud connection configuration */ -export interface DefenderForContainersGcpOfferingNativeCloudConnection { - /** The service account email address in GCP for this offering */ - serviceAccountEmailAddress?: string; - /** The GCP workload identity provider id for this offering */ - workloadIdentityProviderId?: string; +/** Application's condition */ +export interface ApplicationCondition { + /** The application Condition's Property, e.g. ID, see examples */ + property?: string; + /** The application Condition's Value like IDs that contain some string, see examples */ + value?: string; + /** The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples */ + operator?: ApplicationConditionOperator; +} + +/** The AWS organization data */ +export interface AwsOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Organization" | "Member"; +} + +/** The gcpOrganization data */ +export interface GcpOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Organization" | "Member"; +} + +/** The details about the project represented by the security connector */ +export interface GcpProjectDetails { + /** The unique GCP Project number */ + projectNumber?: string; + /** The GCP Project id */ + projectId?: string; + /** + * The GCP workload identity federation pool id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workloadIdentityPoolId?: string; + /** + * GCP project name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly projectName?: string; } /** The native cloud connection configuration */ -export interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection { - /** The data collection service account email address in GCP for this offering */ - serviceAccountEmailAddress?: string; - /** The data collection GCP workload identity provider id for this offering */ - workloadIdentityProviderId?: string; +export interface CspmMonitorAwsOfferingNativeCloudConnection { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The kubernetes service connection configuration */ +export interface DefenderForContainersAwsOfferingKubernetesService { + /** The cloud role ARN in AWS for this feature used for provisioning resources */ + cloudRoleArn?: string; +} + +/** The kubernetes to scuba connection configuration */ +export interface DefenderForContainersAwsOfferingKubernetesScubaReader { + /** The cloud role ARN in AWS for this feature used for reading data */ + cloudRoleArn?: string; +} + +/** The cloudwatch to kinesis connection configuration */ +export interface DefenderForContainersAwsOfferingCloudWatchToKinesis { + /** The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis */ + cloudRoleArn?: string; +} + +/** The kinesis to s3 connection configuration */ +export interface DefenderForContainersAwsOfferingKinesisToS3 { + /** The cloud role ARN in AWS used by Kinesis to transfer data into S3 */ + cloudRoleArn?: string; +} + +/** The container vulnerability assessment configuration */ +export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The container vulnerability assessment task configuration */ +export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The Defender for servers connection configuration */ +export interface DefenderForServersAwsOfferingDefenderForServers { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForServersAwsOfferingArcAutoProvisioning { + /** Is arc auto provisioning enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; + /** Configuration for servers Arc auto provisioning */ + configuration?: DefenderForServersAwsOfferingArcAutoProvisioningConfiguration; +} + +/** Configuration for servers Arc auto provisioning */ +export interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration { + /** Optional HTTP proxy endpoint to use for the Arc agent */ + proxy?: string; + /** Optional Arc private link scope resource id to link the Arc agent */ + privateLinkScope?: string; +} + +/** The Vulnerability Assessment autoprovisioning configuration */ +export interface DefenderForServersAwsOfferingVaAutoProvisioning { + /** Is Vulnerability Assessment auto provisioning enabled */ + enabled?: boolean; + /** configuration for Vulnerability Assessment autoprovisioning */ + configuration?: DefenderForServersAwsOfferingVaAutoProvisioningConfiguration; +} + +/** configuration for Vulnerability Assessment autoprovisioning */ +export interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration { + /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ + type?: Type; +} + +/** The Microsoft Defender for Endpoint autoprovisioning configuration */ +export interface DefenderForServersAwsOfferingMdeAutoProvisioning { + /** Is Microsoft Defender for Endpoint auto provisioning enabled */ + enabled?: boolean; + /** configuration for Microsoft Defender for Endpoint autoprovisioning */ + configuration?: Record; +} + +/** configuration for the servers offering subPlan */ +export interface DefenderForServersAwsOfferingSubPlan { + /** The available sub plans */ + type?: SubPlan; } /** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderCspmAwsOfferingVmScanners { +export interface DefenderForServersAwsOfferingVmScanners { /** Is Microsoft Defender for Server VM scanning enabled */ enabled?: boolean; /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; + configuration?: DefenderForServersAwsOfferingVmScannersConfiguration; } /** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderCspmAwsOfferingVmScannersConfiguration { +export interface DefenderForServersAwsOfferingVmScannersConfiguration { /** The cloud role ARN in AWS for this feature */ cloudRoleArn?: string; /** The scanning mode for the VM scan. */ @@ -2588,67 +3079,295 @@ export interface DefenderCspmAwsOfferingVmScannersConfiguration { exclusionTags?: { [propertyName: string]: string }; } -/** The Microsoft Defender Data Sensitivity discovery configuration */ -export interface DefenderCspmAwsOfferingDataSensitivityDiscovery { - /** Is Microsoft Defender Data Sensitivity discovery enabled */ +/** The ARC autoprovisioning configuration */ +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning { + /** Is arc auto provisioning enabled */ enabled?: boolean; /** The cloud role ARN in AWS for this feature */ cloudRoleArn?: string; + /** Configuration for servers Arc auto provisioning */ + configuration?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration; } -/** The databases DSPM configuration */ -export interface DefenderCspmAwsOfferingDatabasesDspm { - /** Is databases DSPM protection enabled */ +/** Configuration for servers Arc auto provisioning */ +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration { + /** Optional http proxy endpoint to use for the Arc agent */ + proxy?: string; + /** Optional Arc private link scope resource id to link the Arc agent */ + privateLinkScope?: string; +} + +/** The RDS configuration */ +export interface DefenderFoDatabasesAwsOfferingRds { + /** Is RDS protection enabled */ enabled?: boolean; /** The cloud role ARN in AWS for this feature */ cloudRoleArn?: string; } -/** The resource of the configuration or data needed to onboard the machine to MDE */ -export interface MdeOnboardingData extends Resource { - /** The onboarding package used to onboard Windows machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ - onboardingPackageWindows?: Uint8Array; - /** The onboarding package used to onboard Linux machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ - onboardingPackageLinux?: Uint8Array; +/** The databases data security posture management (DSPM) configuration */ +export interface DefenderFoDatabasesAwsOfferingDatabasesDspm { + /** Is databases data security posture management (DSPM) protection enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** Custom Assessment Automation */ -export interface CustomAssessmentAutomation extends Resource { - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** GZip encoded KQL query representing the assessment automation results required. */ - compressedQuery?: string; - /** Relevant cloud for the custom assessment automation. */ - supportedCloud?: SupportedCloudEnum; - /** The severity to relate to the assessments generated by this assessment automation. */ - severity?: SeverityEnum; - /** The display name of the assessments generated by this assessment automation. */ - displayName?: string; - /** The description to relate to the assessments generated by this assessment automation. */ - description?: string; - /** The remediation description to relate to the assessments generated by this assessment automation. */ - remediationDescription?: string; - /** The assessment metadata key used when an assessment is generated for this assessment automation. */ - assessmentKey?: string; +/** The native cloud connection configuration */ +export interface InformationProtectionAwsOfferingInformationProtection { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** Custom Assessment Automation request */ -export interface CustomAssessmentAutomationRequest extends Resource { - /** Base 64 encoded KQL query representing the assessment automation results required. */ - compressedQuery?: string; - /** Relevant cloud for the custom assessment automation. */ - supportedCloud?: SupportedCloudEnum; - /** The severity to relate to the assessments generated by this assessment automation. */ - severity?: SeverityEnum; - /** The display name of the assessments generated by this assessment automation. */ - displayName?: string; - /** The description to relate to the assessments generated by this assessment automation. */ - description?: string; - /** The remediation description to relate to the assessments generated by this assessment automation. */ - remediationDescription?: string; +/** The native cloud connection configuration */ +export interface CspmMonitorGcpOfferingNativeCloudConnection { + /** The GCP workload identity provider id for the offering */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; +} + +/** The Defender for servers connection configuration */ +export interface DefenderForServersGcpOfferingDefenderForServers { + /** The workload identity provider id in GCP for this feature */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this feature */ + serviceAccountEmailAddress?: string; +} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForServersGcpOfferingArcAutoProvisioning { + /** Is arc auto provisioning enabled */ + enabled?: boolean; + /** Configuration for servers Arc auto provisioning */ + configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration; +} + +/** Configuration for servers Arc auto provisioning */ +export interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration { + /** Optional HTTP proxy endpoint to use for the Arc agent */ + proxy?: string; + /** Optional Arc private link scope resource id to link the Arc agent */ + privateLinkScope?: string; +} + +/** The Vulnerability Assessment autoprovisioning configuration */ +export interface DefenderForServersGcpOfferingVaAutoProvisioning { + /** Is Vulnerability Assessment auto provisioning enabled */ + enabled?: boolean; + /** configuration for Vulnerability Assessment autoprovisioning */ + configuration?: DefenderForServersGcpOfferingVaAutoProvisioningConfiguration; +} + +/** configuration for Vulnerability Assessment autoprovisioning */ +export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { + /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ + type?: Type; +} + +/** The Microsoft Defender for Endpoint autoprovisioning configuration */ +export interface DefenderForServersGcpOfferingMdeAutoProvisioning { + /** Is Microsoft Defender for Endpoint auto provisioning enabled */ + enabled?: boolean; + /** configuration for Microsoft Defender for Endpoint autoprovisioning */ + configuration?: Record; +} + +/** configuration for the servers offering subPlan */ +export interface DefenderForServersGcpOfferingSubPlan { + /** The available sub plans */ + type?: SubPlan; +} + +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderForServersGcpOfferingVmScanners { + /** Is Microsoft Defender for Server VM scanning enabled */ + enabled?: boolean; + /** configuration for Microsoft Defender for Server VM scanning */ + configuration?: DefenderForServersGcpOfferingVmScannersConfiguration; +} + +/** configuration for Microsoft Defender for Server VM scanning */ +export interface DefenderForServersGcpOfferingVmScannersConfiguration { + /** The scanning mode for the VM scan. */ + scanningMode?: ScanningMode; + /** VM tags that indicate that VM should not be scanned */ + exclusionTags?: { [propertyName: string]: string }; +} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { + /** Is arc auto provisioning enabled */ + enabled?: boolean; + /** Configuration for servers Arc auto provisioning */ + configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; +} + +/** Configuration for servers Arc auto provisioning */ +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration { + /** Optional http proxy endpoint to use for the Arc agent */ + proxy?: string; + /** Optional Arc private link scope resource id to link the Arc agent */ + privateLinkScope?: string; +} + +/** The native cloud connection configuration */ +export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning { + /** The service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; + /** The GCP workload identity provider id for this offering */ + workloadIdentityProviderId?: string; +} + +/** The native cloud connection configuration */ +export interface DefenderForContainersGcpOfferingNativeCloudConnection { + /** The service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; + /** The GCP workload identity provider id for this offering */ + workloadIdentityProviderId?: string; +} + +/** The native cloud connection configuration */ +export interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection { + /** The data collection service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; + /** The data collection GCP workload identity provider id for this offering */ + workloadIdentityProviderId?: string; +} + +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderCspmAwsOfferingVmScanners { + /** Is Microsoft Defender for Server VM scanning enabled */ + enabled?: boolean; + /** configuration for Microsoft Defender for Server VM scanning */ + configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; +} + +/** configuration for Microsoft Defender for Server VM scanning */ +export interface DefenderCspmAwsOfferingVmScannersConfiguration { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; + /** The scanning mode for the VM scan. */ + scanningMode?: ScanningMode; + /** VM tags that indicates that VM should not be scanned */ + exclusionTags?: { [propertyName: string]: string }; +} + +/** The Microsoft Defender Data Sensitivity discovery configuration */ +export interface DefenderCspmAwsOfferingDataSensitivityDiscovery { + /** Is Microsoft Defender Data Sensitivity discovery enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The databases DSPM configuration */ +export interface DefenderCspmAwsOfferingDatabasesDspm { + /** Is databases DSPM protection enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** AzureDevOps Org Inventory Configuration. */ +export interface AzureDevOpsOrganizationConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * AzureDevOps Project Inventory Configuration. + * Dictionary of AzureDevOps project name to desired project configuration. + * If AutoDiscovery is Enabled, this field should be empty or null. + */ + projectConfigs?: { [propertyName: string]: AzureDevOpsProjectConfiguration }; +} + +/** AzureDevOps Project Inventory Configuration. */ +export interface AzureDevOpsProjectConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * AzureDevOps Repository Inventory Configuration. + * Dictionary of AzureDevOps repository name to desired repository configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** Base Resource Inventory configuration changes. */ +export interface BaseResourceConfiguration { + /** Onboarding states. */ + desiredOnboardingState?: DesiredOnboardingState; +} + +/** GitHub Owner Inventory Configuration. */ +export interface GitHubOwnerConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * GitHub Repository Inventory Configuration. + * Dictionary of GitHub repository name to desired repository configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** GitLab Group Inventory Configuration. */ +export interface GitLabGroupConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * GitLab Project Inventory Configuration. + * Dictionary of GitLab fully-qualified project name to desired project configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + projectConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** The resource of the configuration or data needed to onboard the machine to MDE */ +export interface MdeOnboardingData extends Resource { + /** The onboarding package used to onboard Windows machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ + onboardingPackageWindows?: Uint8Array; + /** The onboarding package used to onboard Linux machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ + onboardingPackageLinux?: Uint8Array; +} + +/** Custom Assessment Automation */ +export interface CustomAssessmentAutomation extends Resource { + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** GZip encoded KQL query representing the assessment automation results required. */ + compressedQuery?: string; + /** Relevant cloud for the custom assessment automation. */ + supportedCloud?: SupportedCloudEnum; + /** The severity to relate to the assessments generated by this assessment automation. */ + severity?: SeverityEnum; + /** The display name of the assessments generated by this assessment automation. */ + displayName?: string; + /** The description to relate to the assessments generated by this assessment automation. */ + description?: string; + /** The remediation description to relate to the assessments generated by this assessment automation. */ + remediationDescription?: string; + /** The assessment metadata key used when an assessment is generated for this assessment automation. */ + assessmentKey?: string; +} + +/** Custom Assessment Automation request */ +export interface CustomAssessmentAutomationRequest extends Resource { + /** Base 64 encoded KQL query representing the assessment automation results required. */ + compressedQuery?: string; + /** Relevant cloud for the custom assessment automation. */ + supportedCloud?: SupportedCloudEnum; + /** The severity to relate to the assessments generated by this assessment automation. */ + severity?: SeverityEnum; + /** The display name of the assessments generated by this assessment automation. */ + displayName?: string; + /** The description to relate to the assessments generated by this assessment automation. */ + description?: string; + /** The remediation description to relate to the assessments generated by this assessment automation. */ + remediationDescription?: string; } /** Custom entity store assignment */ @@ -3629,12 +4348,6 @@ export interface Setting extends Resource { kind: SettingKind; } -/** Configures how to correlate scan data and logs with resources associated with the subscription. */ -export interface IngestionSetting extends Resource { - /** Ingestion setting data */ - properties?: Record; -} - /** Represents a software data */ export interface Software extends Resource { /** Unique identifier for the virtual machine in the service. */ @@ -3722,28 +4435,58 @@ export interface Application extends Resource { conditionSets?: Record[]; } -/** An API collection as represented by Defender for APIs. */ -export interface ApiCollectionResponse extends Resource { - /** The display name of the Azure API Management API. */ - displayName?: string; - /** Additional data regarding the API collection. */ - additionalData?: { [propertyName: string]: string }; -} - -/** The health report resource */ -export interface HealthReport extends Resource { - /** The resource details of the health report */ - resourceDetails?: ResourceDetailsAutoGenerated; - /** The environment details of the resource */ - environmentDetails?: EnvironmentDetails; - /** The classification of the health report */ - healthDataClassification?: HealthDataClassification; - /** The status of the health report */ - status?: StatusAutoGenerated; - /** The affected defenders plans by unhealthy report */ - affectedDefendersPlans?: string[]; - /** A collection of the issues in the report */ - issues?: Issue[]; +/** An API collection as represented by Microsoft Defender for APIs. */ +export interface ApiCollection extends Resource { + /** + * Gets the provisioning state of the API collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * The display name of the API collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * The resource Id of the resource from where this API collection was discovered. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly discoveredVia?: string; + /** + * The base URI for this API collection. All endpoints of this API collection extend this base URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly baseUrl?: string; + /** + * The number of API endpoints discovered in this API collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfApiEndpoints?: number; + /** + * The number of API endpoints in this API collection that have not received any API traffic in the last 30 days. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfInactiveApiEndpoints?: number; + /** + * The number of API endpoints in this API collection that are unauthenticated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfUnauthenticatedApiEndpoints?: number; + /** + * The number of API endpoints in this API collection for which API traffic from the internet was observed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfExternalApiEndpoints?: number; + /** + * The number of API endpoints in this API collection which are exposing sensitive data in their requests and/or responses. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfApiEndpointsWithSensitiveDataExposed?: number; + /** + * The highest priority sensitivity label from Microsoft Purview in this API collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sensitivityLabel?: string; } /** A vulnerability assessment scan record. */ @@ -3770,6 +4513,55 @@ export interface SecurityOperator extends Resource { identity?: Identity; } +/** The health report resource */ +export interface HealthReport extends Resource { + /** The resource details of the health report */ + resourceDetails?: ResourceDetailsAutoGenerated; + /** The environment details of the resource */ + environmentDetails?: EnvironmentDetails; + /** The classification of the health report */ + healthDataClassification?: HealthDataClassification; + /** The status of the health report */ + status?: StatusAutoGenerated; + /** The affected defenders plans by unhealthy report */ + affectedDefendersPlans?: string[]; + /** The affected defenders sub plans by unhealthy report */ + affectedDefendersSubPlans?: string[]; + /** + * Additional data for the given health report, this field can include more details on the resource and the health scenario. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reportAdditionalData?: { [propertyName: string]: string }; + /** A collection of the issues in the report */ + issues?: Issue[]; +} + +/** The Defender for Storage resource. */ +export interface DefenderForStorageSetting extends Resource { + /** Indicates whether Defender for Storage is enabled on this storage account. */ + isEnabledPropertiesIsEnabled?: boolean; + /** Indicates whether the settings defined for this storage account should override the settings defined for the subscription. */ + overrideSubscriptionLevelSettings?: boolean; + /** Indicates whether Sensitive Data Discovery should be enabled. */ + isEnabledPropertiesSensitiveDataDiscoveryIsEnabled?: boolean; + /** + * Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationStatusPropertiesSensitiveDataDiscoveryOperationStatus?: OperationStatusAutoGenerated; + /** 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?: OperationStatusAutoGenerated; + /** Indicates whether On Upload malware scanning should be enabled. */ + isEnabledPropertiesMalwareScanningOnUploadIsEnabled?: boolean; + /** Defines the max GB to be scanned per Month. Set to -1 if no capping is needed. */ + capGBPerMonth?: number; +} + /** Security assessment metadata */ export interface SecurityAssessmentMetadata extends Resource { /** User friendly display name of the assessment */ @@ -4373,6 +5165,16 @@ export interface GitlabScopeEnvironmentData extends EnvironmentData { environmentType: "GitlabScope"; } +/** A base vulnerability assessments setting on servers in the defined scope. */ +export interface ServerVulnerabilityAssessmentsSetting + extends ResourceAutoGenerated { + /** The kind of the server vulnerability assessments setting. */ + kind: ServerVulnerabilityAssessmentsSettingKind; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends ResourceAutoGenerated2 {} + /** The external security solution properties for CEF solutions */ export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { @@ -4564,6 +5366,103 @@ export interface OnPremiseSqlResourceDetails extends OnPremiseResourceDetails { databaseName: string; } +/** A vulnerability assessments setting on Azure servers in the defined scope. */ +export interface AzureServersSetting + extends ServerVulnerabilityAssessmentsSetting { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "AzureServersSetting"; + /** The selected vulnerability assessments provider on Azure servers in the defined scope. */ + selectedProvider?: ServerVulnerabilityAssessmentsAzureSettingSelectedProvider; +} + +/** Azure DevOps Organization resource. */ +export interface AzureDevOpsOrg extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Azure DevOps Organization properties. */ + properties?: AzureDevOpsOrgProperties; +} + +/** Azure DevOps Project resource. */ +export interface AzureDevOpsProject extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Azure DevOps Project properties. */ + properties?: AzureDevOpsProjectProperties; +} + +/** Azure DevOps Repository resource. */ +export interface AzureDevOpsRepository extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Azure DevOps Repository properties. */ + properties?: AzureDevOpsRepositoryProperties; +} + +/** DevOps Configuration resource. */ +export interface DevOpsConfiguration extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** DevOps Configuration properties. */ + properties?: DevOpsConfigurationProperties; +} + +/** GitHub Owner resource. */ +export interface GitHubOwner extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** GitHub Owner properties. */ + properties?: GitHubOwnerProperties; +} + +/** GitHub Repository resource. */ +export interface GitHubRepository extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** GitHub Repository properties. */ + properties?: GitHubRepositoryProperties; +} + +/** GitLab Group resource. */ +export interface GitLabGroup extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** GitLab Group properties. */ + properties?: GitLabGroupProperties; +} + +/** GitLab Project resource. */ +export interface GitLabProject extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** GitLab Project properties. */ + properties?: GitLabProjectProperties; +} + /** Number of active connections is not in allowed range. */ export interface ActiveConnectionsNotInAllowedRange extends TimeWindowCustomAlertRule { @@ -4718,6 +5617,11 @@ export interface GovernanceRulesOperationResultsHeaders { location?: string; } +/** Defines headers for APICollections_onboardAzureApiManagementApi operation. */ +export interface APICollectionsOnboardAzureApiManagementApiHeaders { + location?: string; +} + /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -6500,6 +7404,30 @@ export enum KnownAuthenticationType { */ export type AuthenticationType = string; +/** Known values of {@link MipIntegrationStatus} that the service accepts. */ +export enum KnownMipIntegrationStatus { + /** Ok */ + Ok = "Ok", + /** NoConsent */ + NoConsent = "noConsent", + /** NoAutoLabelingRules */ + NoAutoLabelingRules = "noAutoLabelingRules", + /** NoMipLabels */ + NoMipLabels = "noMipLabels" +} + +/** + * Defines values for MipIntegrationStatus. \ + * {@link KnownMipIntegrationStatus} can be used interchangeably with MipIntegrationStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Ok** \ + * **noConsent** \ + * **noAutoLabelingRules** \ + * **noMipLabels** + */ +export type MipIntegrationStatus = string; + /** Known values of {@link AlertSeverity} that the service accepts. */ export enum KnownAlertSeverity { /** Informational */ @@ -6803,51 +7731,6 @@ export enum KnownApplicationSourceResourceType { */ export type ApplicationSourceResourceType = string; -/** Known values of {@link ScopeName} that the service accepts. */ -export enum KnownScopeName { - /** Connectors */ - Connectors = "Connectors", - /** Clusters */ - Clusters = "Clusters", - /** VirtualMachines */ - VirtualMachines = "VirtualMachines", - /** Unknown */ - Unknown = "Unknown" -} - -/** - * Defines values for ScopeName. \ - * {@link KnownScopeName} can be used interchangeably with ScopeName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Connectors** \ - * **Clusters** \ - * **VirtualMachines** \ - * **Unknown** - */ -export type ScopeName = string; - -/** Known values of {@link StatusName} that the service accepts. */ -export enum KnownStatusName { - /** Healthy */ - Healthy = "Healthy", - /** NotHealthy */ - NotHealthy = "NotHealthy", - /** NotApplicable */ - NotApplicable = "NotApplicable" -} - -/** - * Defines values for StatusName. \ - * {@link KnownStatusName} can be used interchangeably with StatusName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Healthy** \ - * **NotHealthy** \ - * **NotApplicable** - */ -export type StatusName = string; - /** Known values of {@link ScanTriggerType} that the service accepts. */ export enum KnownScanTriggerType { /** OnDemand */ @@ -7069,1751 +7952,2420 @@ export enum KnownEnvironmentType { GitlabScope = "GitlabScope" } -/** - * Defines values for EnvironmentType. \ - * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AwsAccount** \ - * **GcpProject** \ - * **GithubScope** \ - * **AzureDevOpsScope** \ - * **GitlabScope** - */ -export type EnvironmentType = string; +/** + * Defines values for EnvironmentType. \ + * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AwsAccount** \ + * **GcpProject** \ + * **GithubScope** \ + * **AzureDevOpsScope** \ + * **GitlabScope** + */ +export type EnvironmentType = string; + +/** Known values of {@link ServerVulnerabilityAssessmentsSettingKind} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentsSettingKind { + /** AzureServersSetting */ + AzureServersSetting = "AzureServersSetting" +} + +/** + * Defines values for ServerVulnerabilityAssessmentsSettingKind. \ + * {@link KnownServerVulnerabilityAssessmentsSettingKind} can be used interchangeably with ServerVulnerabilityAssessmentsSettingKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureServersSetting** + */ +export type ServerVulnerabilityAssessmentsSettingKind = string; + +/** Known values of {@link ServerVulnerabilityAssessmentsSettingKindName} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentsSettingKindName { + /** AzureServersSetting */ + AzureServersSetting = "azureServersSetting" +} + +/** + * Defines values for ServerVulnerabilityAssessmentsSettingKindName. \ + * {@link KnownServerVulnerabilityAssessmentsSettingKindName} can be used interchangeably with ServerVulnerabilityAssessmentsSettingKindName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **azureServersSetting** + */ +export type ServerVulnerabilityAssessmentsSettingKindName = string; + +/** Known values of {@link StatusName} that the service accepts. */ +export enum KnownStatusName { + /** Healthy */ + Healthy = "Healthy", + /** NotHealthy */ + NotHealthy = "NotHealthy", + /** NotApplicable */ + NotApplicable = "NotApplicable" +} + +/** + * Defines values for StatusName. \ + * {@link KnownStatusName} can be used interchangeably with StatusName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Healthy** \ + * **NotHealthy** \ + * **NotApplicable** + */ +export type StatusName = string; + +/** Known values of {@link SettingNameAutoGenerated} that the service accepts. */ +export enum KnownSettingNameAutoGenerated { + /** Name of the Defender for Storage Settings name. */ + Current = "current" +} + +/** + * Defines values for SettingNameAutoGenerated. \ + * {@link KnownSettingNameAutoGenerated} can be used interchangeably with SettingNameAutoGenerated, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current**: Name of the Defender for Storage Settings name. + */ +export type SettingNameAutoGenerated = string; + +/** Known values of {@link DevOpsProvisioningState} that the service accepts. */ +export enum KnownDevOpsProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Pending */ + Pending = "Pending", + /** PendingDeletion */ + PendingDeletion = "PendingDeletion", + /** DeletionSuccess */ + DeletionSuccess = "DeletionSuccess", + /** DeletionFailure */ + DeletionFailure = "DeletionFailure" +} + +/** + * Defines values for DevOpsProvisioningState. \ + * {@link KnownDevOpsProvisioningState} can be used interchangeably with DevOpsProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Pending** \ + * **PendingDeletion** \ + * **DeletionSuccess** \ + * **DeletionFailure** + */ +export type DevOpsProvisioningState = string; + +/** Known values of {@link OnboardingState} that the service accepts. */ +export enum KnownOnboardingState { + /** NotApplicable */ + NotApplicable = "NotApplicable", + /** OnboardedByOtherConnector */ + OnboardedByOtherConnector = "OnboardedByOtherConnector", + /** Onboarded */ + Onboarded = "Onboarded", + /** NotOnboarded */ + NotOnboarded = "NotOnboarded" +} + +/** + * Defines values for OnboardingState. \ + * {@link KnownOnboardingState} can be used interchangeably with OnboardingState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotApplicable** \ + * **OnboardedByOtherConnector** \ + * **Onboarded** \ + * **NotOnboarded** + */ +export type OnboardingState = string; + +/** Known values of {@link ActionableRemediationState} that the service accepts. */ +export enum KnownActionableRemediationState { + /** None */ + None = "None", + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * Defines values for ActionableRemediationState. \ + * {@link KnownActionableRemediationState} can be used interchangeably with ActionableRemediationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Disabled** \ + * **Enabled** + */ +export type ActionableRemediationState = string; + +/** Known values of {@link RuleCategory} that the service accepts. */ +export enum KnownRuleCategory { + /** Code */ + Code = "Code", + /** Artifacts */ + Artifacts = "Artifacts", + /** Dependencies */ + Dependencies = "Dependencies", + /** Secrets */ + Secrets = "Secrets", + /** IaC */ + IaC = "IaC", + /** Containers */ + Containers = "Containers" +} + +/** + * Defines values for RuleCategory. \ + * {@link KnownRuleCategory} can be used interchangeably with RuleCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Code** \ + * **Artifacts** \ + * **Dependencies** \ + * **Secrets** \ + * **IaC** \ + * **Containers** + */ +export type RuleCategory = string; + +/** Known values of {@link AnnotateDefaultBranchState} that the service accepts. */ +export enum KnownAnnotateDefaultBranchState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * Defines values for AnnotateDefaultBranchState. \ + * {@link KnownAnnotateDefaultBranchState} can be used interchangeably with AnnotateDefaultBranchState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type AnnotateDefaultBranchState = string; + +/** Known values of {@link InheritFromParentState} that the service accepts. */ +export enum KnownInheritFromParentState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * Defines values for InheritFromParentState. \ + * {@link KnownInheritFromParentState} can be used interchangeably with InheritFromParentState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type InheritFromParentState = string; + +/** Known values of {@link AutoDiscovery} that the service accepts. */ +export enum KnownAutoDiscovery { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** NotApplicable */ + NotApplicable = "NotApplicable" +} + +/** + * Defines values for AutoDiscovery. \ + * {@link KnownAutoDiscovery} can be used interchangeably with AutoDiscovery, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **NotApplicable** + */ +export type AutoDiscovery = string; + +/** Known values of {@link AadConnectivityState} that the service accepts. */ +export enum KnownAadConnectivityState { + /** Discovered */ + Discovered = "Discovered", + /** NotLicensed */ + NotLicensed = "NotLicensed", + /** Connected */ + Connected = "Connected" +} + +/** + * Defines values for AadConnectivityState. \ + * {@link KnownAadConnectivityState} can be used interchangeably with AadConnectivityState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Discovered** \ + * **NotLicensed** \ + * **Connected** + */ +export type AadConnectivityState = string; + +/** Known values of {@link BundleType} that the service accepts. */ +export enum KnownBundleType { + /** AppServices */ + AppServices = "AppServices", + /** DNS */ + DNS = "DNS", + /** KeyVaults */ + KeyVaults = "KeyVaults", + /** KubernetesService */ + KubernetesService = "KubernetesService", + /** ResourceManager */ + ResourceManager = "ResourceManager", + /** SqlServers */ + SqlServers = "SqlServers", + /** StorageAccounts */ + StorageAccounts = "StorageAccounts", + /** VirtualMachines */ + VirtualMachines = "VirtualMachines", + /** CosmosDbs */ + CosmosDbs = "CosmosDbs" +} + +/** + * Defines values for BundleType. \ + * {@link KnownBundleType} can be used interchangeably with BundleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AppServices** \ + * **DNS** \ + * **KeyVaults** \ + * **KubernetesService** \ + * **ResourceManager** \ + * **SqlServers** \ + * **StorageAccounts** \ + * **VirtualMachines** \ + * **CosmosDbs** + */ +export type BundleType = string; + +/** Known values of {@link GovernanceRuleConditionOperator} that the service accepts. */ +export enum KnownGovernanceRuleConditionOperator { + /** Checks that the string value of the data defined in Property equals the given value - exact fit */ + Equals = "Equals", + /** Checks that the string value of the data defined in Property equals any of the given values (exact fit) */ + In = "In" +} + +/** + * Defines values for GovernanceRuleConditionOperator. \ + * {@link KnownGovernanceRuleConditionOperator} can be used interchangeably with GovernanceRuleConditionOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Equals**: Checks that the string value of the data defined in Property equals the given value - exact fit \ + * **In**: Checks that the string value of the data defined in Property equals any of the given values (exact fit) + */ +export type GovernanceRuleConditionOperator = string; + +/** Known values of {@link ApplicationConditionOperator} that the service accepts. */ +export enum KnownApplicationConditionOperator { + /** Checks that the string value of the data defined in Property contains the given value */ + Contains = "Contains", + /** Checks that the string value of the data defined in Property equals the given value */ + Equals = "Equals", + /** Checks that the string value of the data defined in Property equals any of the given values (exact fit) */ + In = "In" +} + +/** + * Defines values for ApplicationConditionOperator. \ + * {@link KnownApplicationConditionOperator} can be used interchangeably with ApplicationConditionOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Contains**: Checks that the string value of the data defined in Property contains the given value \ + * **Equals**: Checks that the string value of the data defined in Property equals the given value \ + * **In**: Checks that the string value of the data defined in Property equals any of the given values (exact fit) + */ +export type ApplicationConditionOperator = string; + +/** Known values of {@link OrganizationMembershipType} that the service accepts. */ +export enum KnownOrganizationMembershipType { + /** Member */ + Member = "Member", + /** Organization */ + Organization = "Organization" +} + +/** + * Defines values for OrganizationMembershipType. \ + * {@link KnownOrganizationMembershipType} can be used interchangeably with OrganizationMembershipType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Member** \ + * **Organization** + */ +export type OrganizationMembershipType = string; + +/** Known values of {@link Type} that the service accepts. */ +export enum KnownType { + /** Qualys */ + Qualys = "Qualys", + /** TVM */ + TVM = "TVM" +} + +/** + * Defines values for Type. \ + * {@link KnownType} can be used interchangeably with Type, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Qualys** \ + * **TVM** + */ +export type Type = string; + +/** Known values of {@link SubPlan} that the service accepts. */ +export enum KnownSubPlan { + /** P1 */ + P1 = "P1", + /** P2 */ + P2 = "P2" +} + +/** + * Defines values for SubPlan. \ + * {@link KnownSubPlan} can be used interchangeably with SubPlan, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **P1** \ + * **P2** + */ +export type SubPlan = string; + +/** Known values of {@link ScanningMode} that the service accepts. */ +export enum KnownScanningMode { + /** Default */ + Default = "Default" +} + +/** + * Defines values for ScanningMode. \ + * {@link KnownScanningMode} can be used interchangeably with ScanningMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** + */ +export type ScanningMode = string; + +/** Known values of {@link ServerVulnerabilityAssessmentsAzureSettingSelectedProvider} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider { + /** Microsoft Defender for Endpoints threat and vulnerability management. */ + MdeTvm = "MdeTvm" +} + +/** + * Defines values for ServerVulnerabilityAssessmentsAzureSettingSelectedProvider. \ + * {@link KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider} can be used interchangeably with ServerVulnerabilityAssessmentsAzureSettingSelectedProvider, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MdeTvm**: Microsoft Defender for Endpoints threat and vulnerability management. + */ +export type ServerVulnerabilityAssessmentsAzureSettingSelectedProvider = string; + +/** Known values of {@link DesiredOnboardingState} that the service accepts. */ +export enum KnownDesiredOnboardingState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * Defines values for DesiredOnboardingState. \ + * {@link KnownDesiredOnboardingState} can be used interchangeably with DesiredOnboardingState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type DesiredOnboardingState = string; +/** Defines values for Rank. */ +export type Rank = "None" | "Low" | "Medium" | "High" | "Critical"; +/** Defines values for RuleState. */ +export type RuleState = "Enabled" | "Disabled" | "Expired"; + +/** Optional parameters. */ +export interface MdeOnboardingsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type MdeOnboardingsListResponse = MdeOnboardingDataList; + +/** Optional parameters. */ +export interface MdeOnboardingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type MdeOnboardingsGetResponse = MdeOnboardingData; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CustomAssessmentAutomationsGetResponse = CustomAssessmentAutomation; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type CustomAssessmentAutomationsCreateResponse = CustomAssessmentAutomation; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type CustomAssessmentAutomationsListByResourceGroupResponse = CustomAssessmentAutomationsListResult; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type CustomAssessmentAutomationsListBySubscriptionResponse = CustomAssessmentAutomationsListResult; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type CustomAssessmentAutomationsListByResourceGroupNextResponse = CustomAssessmentAutomationsListResult; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type CustomAssessmentAutomationsListBySubscriptionNextResponse = CustomAssessmentAutomationsListResult; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CustomEntityStoreAssignmentsGetResponse = CustomEntityStoreAssignment; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type CustomEntityStoreAssignmentsCreateResponse = CustomEntityStoreAssignment; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type CustomEntityStoreAssignmentsListByResourceGroupResponse = CustomEntityStoreAssignmentsListResult; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type CustomEntityStoreAssignmentsListBySubscriptionResponse = CustomEntityStoreAssignmentsListResult; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type CustomEntityStoreAssignmentsListByResourceGroupNextResponse = CustomEntityStoreAssignmentsListResult; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type CustomEntityStoreAssignmentsListBySubscriptionNextResponse = CustomEntityStoreAssignmentsListResult; + +/** Optional parameters. */ +export interface ComplianceResultsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ComplianceResultsListResponse = ComplianceResultList; + +/** Optional parameters. */ +export interface ComplianceResultsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComplianceResultsGetResponse = ComplianceResult; + +/** Optional parameters. */ +export interface ComplianceResultsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComplianceResultsListNextResponse = ComplianceResultList; + +/** Optional parameters. */ +export interface PricingsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PricingsListResponse = PricingList; + +/** Optional parameters. */ +export interface PricingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PricingsGetResponse = Pricing; + +/** Optional parameters. */ +export interface PricingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type PricingsUpdateResponse = Pricing; + +/** Optional parameters. */ +export interface AdvancedThreatProtectionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting; + +/** Optional parameters. */ +export interface AdvancedThreatProtectionCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting; + +/** Optional parameters. */ +export interface DeviceSecurityGroupsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; + +/** Optional parameters. */ +export interface DeviceSecurityGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup; + +/** Optional parameters. */ +export interface DeviceSecurityGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup; + +/** Optional parameters. */ +export interface DeviceSecurityGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DeviceSecurityGroupsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList; + +/** Optional parameters. */ +export interface IotSecuritySolutionListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ + filter?: string; +} + +/** Contains response data for the listBySubscription operation. */ +export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList; + +/** Optional parameters. */ +export interface IotSecuritySolutionListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ + filter?: string; +} + +/** Contains response data for the listByResourceGroup operation. */ +export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList; + +/** Optional parameters. */ +export interface IotSecuritySolutionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel; + +/** Optional parameters. */ +export interface IotSecuritySolutionCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel; + +/** Optional parameters. */ +export interface IotSecuritySolutionUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel; + +/** Optional parameters. */ +export interface IotSecuritySolutionDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface IotSecuritySolutionListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList; + +/** Optional parameters. */ +export interface IotSecuritySolutionListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList; + +/** Optional parameters. */ +export interface IotSecuritySolutionAnalyticsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList; + +/** Optional parameters. */ +export interface IotSecuritySolutionAnalyticsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel; + +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams + extends coreClient.OperationOptions { + /** Number of results to retrieve. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList; + +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert; + +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertDismissOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList; + +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsRecommendationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation; + +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams + extends coreClient.OperationOptions { + /** Number of results to retrieve. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList; + +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList; + +/** Optional parameters. */ +export interface LocationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type LocationsListResponse = AscLocationList; -/** Known values of {@link AadConnectivityState} that the service accepts. */ -export enum KnownAadConnectivityState { - /** Discovered */ - Discovered = "Discovered", - /** NotLicensed */ - NotLicensed = "NotLicensed", - /** Connected */ - Connected = "Connected" -} +/** Optional parameters. */ +export interface LocationsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for AadConnectivityState. \ - * {@link KnownAadConnectivityState} can be used interchangeably with AadConnectivityState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Discovered** \ - * **NotLicensed** \ - * **Connected** - */ -export type AadConnectivityState = string; +/** Contains response data for the get operation. */ +export type LocationsGetResponse = AscLocation; -/** Known values of {@link BundleType} that the service accepts. */ -export enum KnownBundleType { - /** AppServices */ - AppServices = "AppServices", - /** DNS */ - DNS = "DNS", - /** KeyVaults */ - KeyVaults = "KeyVaults", - /** KubernetesService */ - KubernetesService = "KubernetesService", - /** ResourceManager */ - ResourceManager = "ResourceManager", - /** SqlServers */ - SqlServers = "SqlServers", - /** StorageAccounts */ - StorageAccounts = "StorageAccounts", - /** VirtualMachines */ - VirtualMachines = "VirtualMachines", - /** CosmosDbs */ - CosmosDbs = "CosmosDbs" -} +/** Optional parameters. */ +export interface LocationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for BundleType. \ - * {@link KnownBundleType} can be used interchangeably with BundleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AppServices** \ - * **DNS** \ - * **KeyVaults** \ - * **KubernetesService** \ - * **ResourceManager** \ - * **SqlServers** \ - * **StorageAccounts** \ - * **VirtualMachines** \ - * **CosmosDbs** - */ -export type BundleType = string; +/** Contains response data for the listNext operation. */ +export type LocationsListNextResponse = AscLocationList; -/** Known values of {@link GovernanceRuleConditionOperator} that the service accepts. */ -export enum KnownGovernanceRuleConditionOperator { - /** Checks that the string value of the data defined in Property equals the given value - exact fit */ - Equals = "Equals", - /** Checks that the string value of the data defined in Property equals any of the given values (exact fit) */ - In = "In" -} +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for GovernanceRuleConditionOperator. \ - * {@link KnownGovernanceRuleConditionOperator} can be used interchangeably with GovernanceRuleConditionOperator, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Equals**: Checks that the string value of the data defined in Property equals the given value - exact fit \ - * **In**: Checks that the string value of the data defined in Property equals any of the given values (exact fit) - */ -export type GovernanceRuleConditionOperator = string; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationList; -/** Known values of {@link ApplicationConditionOperator} that the service accepts. */ -export enum KnownApplicationConditionOperator { - /** Checks that the string value of the data defined in Property contains the given value */ - Contains = "Contains", - /** Checks that the string value of the data defined in Property equals the given value */ - Equals = "Equals", - /** Checks that the string value of the data defined in Property equals any of the given values (exact fit) */ - In = "In" -} +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ApplicationConditionOperator. \ - * {@link KnownApplicationConditionOperator} can be used interchangeably with ApplicationConditionOperator, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Contains**: Checks that the string value of the data defined in Property contains the given value \ - * **Equals**: Checks that the string value of the data defined in Property equals the given value \ - * **In**: Checks that the string value of the data defined in Property equals any of the given values (exact fit) - */ -export type ApplicationConditionOperator = string; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationList; -/** Known values of {@link OrganizationMembershipType} that the service accepts. */ -export enum KnownOrganizationMembershipType { - /** Member */ - Member = "Member", - /** Organization */ - Organization = "Organization" +/** Optional parameters. */ +export interface TasksListOptionalParams extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; } -/** - * Defines values for OrganizationMembershipType. \ - * {@link KnownOrganizationMembershipType} can be used interchangeably with OrganizationMembershipType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Member** \ - * **Organization** - */ -export type OrganizationMembershipType = string; +/** Contains response data for the list operation. */ +export type TasksListResponse = SecurityTaskList; -/** Known values of {@link Type} that the service accepts. */ -export enum KnownType { - /** Qualys */ - Qualys = "Qualys", - /** TVM */ - TVM = "TVM" +/** Optional parameters. */ +export interface TasksListByHomeRegionOptionalParams + extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; } -/** - * Defines values for Type. \ - * {@link KnownType} can be used interchangeably with Type, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Qualys** \ - * **TVM** - */ -export type Type = string; +/** Contains response data for the listByHomeRegion operation. */ +export type TasksListByHomeRegionResponse = SecurityTaskList; -/** Known values of {@link SubPlan} that the service accepts. */ -export enum KnownSubPlan { - /** P1 */ - P1 = "P1", - /** P2 */ - P2 = "P2" -} +/** Optional parameters. */ +export interface TasksGetSubscriptionLevelTaskOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for SubPlan. \ - * {@link KnownSubPlan} can be used interchangeably with SubPlan, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **P1** \ - * **P2** - */ -export type SubPlan = string; +/** Contains response data for the getSubscriptionLevelTask operation. */ +export type TasksGetSubscriptionLevelTaskResponse = SecurityTask; -/** Known values of {@link ScanningMode} that the service accepts. */ -export enum KnownScanningMode { - /** Default */ - Default = "Default" +/** Optional parameters. */ +export interface TasksUpdateSubscriptionLevelTaskStateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TasksListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; } -/** - * Defines values for ScanningMode. \ - * {@link KnownScanningMode} can be used interchangeably with ScanningMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** - */ -export type ScanningMode = string; -/** Defines values for Rank. */ -export type Rank = "None" | "Low" | "Medium" | "High" | "Critical"; -/** Defines values for RuleState. */ -export type RuleState = "Enabled" | "Disabled" | "Expired"; +/** Contains response data for the listByResourceGroup operation. */ +export type TasksListByResourceGroupResponse = SecurityTaskList; /** Optional parameters. */ -export interface MdeOnboardingsListOptionalParams +export interface TasksGetResourceGroupLevelTaskOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type MdeOnboardingsListResponse = MdeOnboardingDataList; +/** Contains response data for the getResourceGroupLevelTask operation. */ +export type TasksGetResourceGroupLevelTaskResponse = SecurityTask; /** Optional parameters. */ -export interface MdeOnboardingsGetOptionalParams +export interface TasksUpdateResourceGroupLevelTaskStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type MdeOnboardingsGetResponse = MdeOnboardingData; +/** Optional parameters. */ +export interface TasksListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type TasksListNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsGetOptionalParams +export interface TasksListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CustomAssessmentAutomationsGetResponse = CustomAssessmentAutomation; +/** Contains response data for the listByHomeRegionNext operation. */ +export type TasksListByHomeRegionNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsCreateOptionalParams +export interface TasksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type CustomAssessmentAutomationsCreateResponse = CustomAssessmentAutomation; +/** Contains response data for the listByResourceGroupNext operation. */ +export type TasksListByResourceGroupNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsDeleteOptionalParams +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 {} +/** Contains response data for the get operation. */ +export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting; + /** Optional parameters. */ -export interface CustomAssessmentAutomationsListByResourceGroupOptionalParams +export interface AutoProvisioningSettingsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type CustomAssessmentAutomationsListByResourceGroupResponse = CustomAssessmentAutomationsListResult; +/** Contains response data for the create operation. */ +export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting; /** Optional parameters. */ -export interface CustomAssessmentAutomationsListBySubscriptionOptionalParams +export interface AutoProvisioningSettingsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type CustomAssessmentAutomationsListBySubscriptionResponse = CustomAssessmentAutomationsListResult; +/** Contains response data for the listNext operation. */ +export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsListByResourceGroupNextOptionalParams +export interface CompliancesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type CustomAssessmentAutomationsListByResourceGroupNextResponse = CustomAssessmentAutomationsListResult; +/** Contains response data for the list operation. */ +export type CompliancesListResponse = ComplianceList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsListBySubscriptionNextOptionalParams +export interface CompliancesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type CustomAssessmentAutomationsListBySubscriptionNextResponse = CustomAssessmentAutomationsListResult; +/** Contains response data for the get operation. */ +export type CompliancesGetResponse = Compliance; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsGetOptionalParams +export interface CompliancesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CustomEntityStoreAssignmentsGetResponse = CustomEntityStoreAssignment; +/** Contains response data for the listNext operation. */ +export type CompliancesListNextResponse = ComplianceList; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsCreateOptionalParams +export interface InformationProtectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type CustomEntityStoreAssignmentsCreateResponse = CustomEntityStoreAssignment; +/** Contains response data for the get operation. */ +export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsDeleteOptionalParams +export interface InformationProtectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy; + /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsListByResourceGroupOptionalParams +export interface InformationProtectionPoliciesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type CustomEntityStoreAssignmentsListByResourceGroupResponse = CustomEntityStoreAssignmentsListResult; +/** Contains response data for the list operation. */ +export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsListBySubscriptionOptionalParams +export interface InformationProtectionPoliciesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type CustomEntityStoreAssignmentsListBySubscriptionResponse = CustomEntityStoreAssignmentsListResult; +/** Contains response data for the listNext operation. */ +export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsListByResourceGroupNextOptionalParams +export interface SecurityContactsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type CustomEntityStoreAssignmentsListByResourceGroupNextResponse = CustomEntityStoreAssignmentsListResult; +/** Contains response data for the list operation. */ +export type SecurityContactsListResponse = SecurityContactList; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsListBySubscriptionNextOptionalParams +export interface SecurityContactsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type CustomEntityStoreAssignmentsListBySubscriptionNextResponse = CustomEntityStoreAssignmentsListResult; +/** Contains response data for the get operation. */ +export type SecurityContactsGetResponse = SecurityContact; /** Optional parameters. */ -export interface ComplianceResultsListOptionalParams +export interface SecurityContactsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ComplianceResultsListResponse = ComplianceResultList; +/** Contains response data for the create operation. */ +export type SecurityContactsCreateResponse = SecurityContact; /** Optional parameters. */ -export interface ComplianceResultsGetOptionalParams +export interface SecurityContactsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ComplianceResultsGetResponse = ComplianceResult; - /** Optional parameters. */ -export interface ComplianceResultsListNextOptionalParams +export interface SecurityContactsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ComplianceResultsListNextResponse = ComplianceResultList; +export type SecurityContactsListNextResponse = SecurityContactList; /** Optional parameters. */ -export interface PricingsListOptionalParams +export interface WorkspaceSettingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PricingsListResponse = PricingList; +export type WorkspaceSettingsListResponse = WorkspaceSettingList; /** Optional parameters. */ -export interface PricingsGetOptionalParams +export interface WorkspaceSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PricingsGetResponse = Pricing; +export type WorkspaceSettingsGetResponse = WorkspaceSetting; /** Optional parameters. */ -export interface PricingsUpdateOptionalParams +export interface WorkspaceSettingsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type PricingsUpdateResponse = Pricing; +/** Contains response data for the create operation. */ +export type WorkspaceSettingsCreateResponse = WorkspaceSetting; /** Optional parameters. */ -export interface AdvancedThreatProtectionGetOptionalParams +export interface WorkspaceSettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting; +/** Contains response data for the update operation. */ +export type WorkspaceSettingsUpdateResponse = WorkspaceSetting; /** Optional parameters. */ -export interface AdvancedThreatProtectionCreateOptionalParams +export interface WorkspaceSettingsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting; - /** Optional parameters. */ -export interface DeviceSecurityGroupsListOptionalParams +export interface WorkspaceSettingsListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type WorkspaceSettingsListNextResponse = WorkspaceSettingList; + +/** Optional parameters. */ +export interface RegulatoryComplianceStandardsListOptionalParams + extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} + /** Contains response data for the list operation. */ -export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList; /** Optional parameters. */ -export interface DeviceSecurityGroupsGetOptionalParams +export interface RegulatoryComplianceStandardsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup; +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard; /** Optional parameters. */ -export interface DeviceSecurityGroupsCreateOrUpdateOptionalParams +export interface RegulatoryComplianceStandardsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup; +/** Contains response data for the listNext operation. */ +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList; /** Optional parameters. */ -export interface DeviceSecurityGroupsDeleteOptionalParams +export interface RegulatoryComplianceControlsListOptionalParams + extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} + +/** Contains response data for the list operation. */ +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList; + +/** Optional parameters. */ +export interface RegulatoryComplianceControlsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl; + /** Optional parameters. */ -export interface DeviceSecurityGroupsListNextOptionalParams +export interface RegulatoryComplianceControlsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList; +export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList; /** Optional parameters. */ -export interface IotSecuritySolutionListBySubscriptionOptionalParams +export interface RegulatoryComplianceAssessmentsListOptionalParams extends coreClient.OperationOptions { - /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ + /** OData filter. Optional. */ filter?: string; } -/** Contains response data for the listBySubscription operation. */ -export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList; +/** Contains response data for the list operation. */ +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList; /** Optional parameters. */ -export interface IotSecuritySolutionListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ - filter?: string; -} +export interface RegulatoryComplianceAssessmentsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList; +/** Contains response data for the get operation. */ +export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment; /** Optional parameters. */ -export interface IotSecuritySolutionGetOptionalParams +export interface RegulatoryComplianceAssessmentsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel; +/** Contains response data for the listNext operation. */ +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList; /** Optional parameters. */ -export interface IotSecuritySolutionCreateOrUpdateOptionalParams +export interface SubAssessmentsListAllOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel; +/** Contains response data for the listAll operation. */ +export type SubAssessmentsListAllResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface IotSecuritySolutionUpdateOptionalParams +export interface SubAssessmentsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel; +/** Contains response data for the list operation. */ +export type SubAssessmentsListResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface IotSecuritySolutionDeleteOptionalParams +export interface SubAssessmentsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type SubAssessmentsGetResponse = SecuritySubAssessment; + /** Optional parameters. */ -export interface IotSecuritySolutionListBySubscriptionNextOptionalParams +export interface SubAssessmentsListAllNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList; +/** Contains response data for the listAllNext operation. */ +export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface IotSecuritySolutionListByResourceGroupNextOptionalParams +export interface SubAssessmentsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList; +/** Contains response data for the listNext operation. */ +export type SubAssessmentsListNextResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface IotSecuritySolutionAnalyticsListOptionalParams +export interface AutomationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList; +export type AutomationsListResponse = AutomationList; /** Optional parameters. */ -export interface IotSecuritySolutionAnalyticsGetOptionalParams +export interface AutomationsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel; +/** Contains response data for the listByResourceGroup operation. */ +export type AutomationsListByResourceGroupResponse = AutomationList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams - extends coreClient.OperationOptions { - /** Number of results to retrieve. */ - top?: number; -} +export interface AutomationsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList; +/** Contains response data for the get operation. */ +export type AutomationsGetResponse = Automation; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertGetOptionalParams +export interface AutomationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert; +/** Contains response data for the createOrUpdate operation. */ +export type AutomationsCreateOrUpdateResponse = Automation; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertDismissOptionalParams +export interface AutomationsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams +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 IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList; +export type AutomationsListNextResponse = AutomationList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationGetOptionalParams +export interface AutomationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation; +/** Contains response data for the listByResourceGroupNext operation. */ +export type AutomationsListByResourceGroupNextResponse = AutomationList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams +export interface AlertsSuppressionRulesListOptionalParams extends coreClient.OperationOptions { - /** Number of results to retrieve. */ - top?: number; + /** Type of the alert to get rules for */ + alertType?: string; } /** Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList; +export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams +export interface AlertsSuppressionRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList; +/** Contains response data for the get operation. */ +export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule; /** Optional parameters. */ -export interface LocationsListOptionalParams +export interface AlertsSuppressionRulesUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type LocationsListResponse = AscLocationList; +/** Contains response data for the update operation. */ +export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule; /** Optional parameters. */ -export interface LocationsGetOptionalParams +export interface AlertsSuppressionRulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LocationsGetResponse = AscLocation; - /** Optional parameters. */ -export interface LocationsListNextOptionalParams +export interface AlertsSuppressionRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type LocationsListNextResponse = AscLocationList; +export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationList; +/** Contains response data for the listByExtendedResource operation. */ +export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface ServerVulnerabilityAssessmentGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationList; +/** Contains response data for the get operation. */ +export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface TasksListOptionalParams extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface ServerVulnerabilityAssessmentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type TasksListResponse = SecurityTaskList; +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface TasksListByHomeRegionOptionalParams +export interface ServerVulnerabilityAssessmentDeleteOptionalParams extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByHomeRegion operation. */ -export type TasksListByHomeRegionResponse = SecurityTaskList; - /** Optional parameters. */ -export interface TasksGetSubscriptionLevelTaskOptionalParams +export interface AssessmentsMetadataListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSubscriptionLevelTask operation. */ -export type TasksGetSubscriptionLevelTaskResponse = SecurityTask; +/** Contains response data for the list operation. */ +export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface TasksUpdateSubscriptionLevelTaskStateOptionalParams +export interface AssessmentsMetadataGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface TasksListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} - -/** Contains response data for the listByResourceGroup operation. */ -export type TasksListByResourceGroupResponse = SecurityTaskList; +/** Contains response data for the get operation. */ +export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface TasksGetResourceGroupLevelTaskOptionalParams +export interface AssessmentsMetadataListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getResourceGroupLevelTask operation. */ -export type TasksGetResourceGroupLevelTaskResponse = SecurityTask; - -/** Optional parameters. */ -export interface TasksUpdateResourceGroupLevelTaskStateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listBySubscription operation. */ +export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface TasksListNextOptionalParams +export interface AssessmentsMetadataGetInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type TasksListNextResponse = SecurityTaskList; +/** Contains response data for the getInSubscription operation. */ +export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface TasksListByHomeRegionNextOptionalParams +export interface AssessmentsMetadataCreateInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type TasksListByHomeRegionNextResponse = SecurityTaskList; +/** Contains response data for the createInSubscription operation. */ +export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface TasksListByResourceGroupNextOptionalParams +export interface AssessmentsMetadataDeleteInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type TasksListByResourceGroupNextResponse = SecurityTaskList; - /** Optional parameters. */ -export interface AutoProvisioningSettingsListOptionalParams +export interface AssessmentsMetadataListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList; +/** Contains response data for the listNext operation. */ +export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface AutoProvisioningSettingsGetOptionalParams +export interface AssessmentsMetadataListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting; +/** Contains response data for the listBySubscriptionNext operation. */ +export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface AutoProvisioningSettingsCreateOptionalParams +export interface AssessmentsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting; +/** Contains response data for the list operation. */ +export type AssessmentsListResponse = SecurityAssessmentList; /** Optional parameters. */ -export interface AutoProvisioningSettingsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsGetOptionalParams + extends coreClient.OperationOptions { + /** OData expand. Optional. */ + expand?: ExpandEnum; +} -/** Contains response data for the listNext operation. */ -export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList; +/** Contains response data for the get operation. */ +export type AssessmentsGetResponse = SecurityAssessmentResponse; /** Optional parameters. */ -export interface CompliancesListOptionalParams +export interface AssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type CompliancesListResponse = ComplianceList; +/** Contains response data for the createOrUpdate operation. */ +export type AssessmentsCreateOrUpdateResponse = SecurityAssessmentResponse; /** Optional parameters. */ -export interface CompliancesGetOptionalParams +export interface AssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CompliancesGetResponse = Compliance; - /** Optional parameters. */ -export interface CompliancesListNextOptionalParams +export interface AssessmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type CompliancesListNextResponse = ComplianceList; +export type AssessmentsListNextResponse = SecurityAssessmentList; /** Optional parameters. */ -export interface InformationProtectionPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface AdaptiveApplicationControlsListOptionalParams + extends coreClient.OperationOptions { + /** Include the policy rules */ + includePathRecommendations?: boolean; + /** Return output in a summarized form */ + summary?: boolean; +} -/** Contains response data for the get operation. */ -export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy; +/** Contains response data for the list operation. */ +export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups; /** Optional parameters. */ -export interface InformationProtectionPoliciesCreateOrUpdateOptionalParams +export interface AdaptiveApplicationControlsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy; +/** Contains response data for the get operation. */ +export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup; /** Optional parameters. */ -export interface InformationProtectionPoliciesListOptionalParams +export interface AdaptiveApplicationControlsPutOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList; +/** Contains response data for the put operation. */ +export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup; /** Optional parameters. */ -export interface InformationProtectionPoliciesListNextOptionalParams +export interface AdaptiveApplicationControlsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList; - /** Optional parameters. */ -export interface SecurityContactsListOptionalParams +export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecurityContactsListResponse = SecurityContactList; +/** Contains response data for the listByExtendedResource operation. */ +export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList; /** Optional parameters. */ -export interface SecurityContactsGetOptionalParams +export interface AdaptiveNetworkHardeningsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityContactsGetResponse = SecurityContact; +export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; /** Optional parameters. */ -export interface SecurityContactsCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type SecurityContactsCreateResponse = SecurityContact; +export interface AdaptiveNetworkHardeningsEnforceOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface SecurityContactsDeleteOptionalParams +export interface AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByExtendedResourceNext operation. */ +export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList; + /** Optional parameters. */ -export interface SecurityContactsListNextOptionalParams +export interface AllowedConnectionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecurityContactsListNextResponse = SecurityContactList; +/** Contains response data for the list operation. */ +export type AllowedConnectionsListResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface WorkspaceSettingsListOptionalParams +export interface AllowedConnectionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type WorkspaceSettingsListResponse = WorkspaceSettingList; +/** Contains response data for the listByHomeRegion operation. */ +export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface WorkspaceSettingsGetOptionalParams +export interface AllowedConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceSettingsGetResponse = WorkspaceSetting; +export type AllowedConnectionsGetResponse = AllowedConnectionsResource; /** Optional parameters. */ -export interface WorkspaceSettingsCreateOptionalParams +export interface AllowedConnectionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type WorkspaceSettingsCreateResponse = WorkspaceSetting; +/** Contains response data for the listNext operation. */ +export type AllowedConnectionsListNextResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface WorkspaceSettingsUpdateOptionalParams +export interface AllowedConnectionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type WorkspaceSettingsUpdateResponse = WorkspaceSetting; +/** Contains response data for the listByHomeRegionNext operation. */ +export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface WorkspaceSettingsDeleteOptionalParams +export interface TopologyListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type TopologyListResponse = TopologyList; + /** Optional parameters. */ -export interface WorkspaceSettingsListNextOptionalParams +export interface TopologyListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type WorkspaceSettingsListNextResponse = WorkspaceSettingList; +/** Contains response data for the listByHomeRegion operation. */ +export type TopologyListByHomeRegionResponse = TopologyList; /** Optional parameters. */ -export interface RegulatoryComplianceStandardsListOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface TopologyGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList; +/** Contains response data for the get operation. */ +export type TopologyGetResponse = TopologyResource; /** Optional parameters. */ -export interface RegulatoryComplianceStandardsGetOptionalParams +export interface TopologyListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard; +/** Contains response data for the listNext operation. */ +export type TopologyListNextResponse = TopologyList; /** Optional parameters. */ -export interface RegulatoryComplianceStandardsListNextOptionalParams +export interface TopologyListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList; +/** Contains response data for the listByHomeRegionNext operation. */ +export type TopologyListByHomeRegionNextResponse = TopologyList; /** Optional parameters. */ -export interface RegulatoryComplianceControlsListOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface JitNetworkAccessPoliciesListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList; +export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface RegulatoryComplianceControlsGetOptionalParams +export interface JitNetworkAccessPoliciesListByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl; +/** Contains response data for the listByRegion operation. */ +export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface RegulatoryComplianceControlsListNextOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList; +/** Contains response data for the listByResourceGroup operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface RegulatoryComplianceAssessmentsListOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList; +/** Contains response data for the listByResourceGroupAndRegion operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface RegulatoryComplianceAssessmentsGetOptionalParams +export interface JitNetworkAccessPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment; +export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy; /** Optional parameters. */ -export interface RegulatoryComplianceAssessmentsListNextOptionalParams +export interface JitNetworkAccessPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList; +/** Contains response data for the createOrUpdate operation. */ +export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy; /** Optional parameters. */ -export interface SubAssessmentsListAllOptionalParams +export interface JitNetworkAccessPoliciesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type SubAssessmentsListAllResponse = SecuritySubAssessmentList; +/** Optional parameters. */ +export interface JitNetworkAccessPoliciesInitiateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the initiate operation. */ +export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest; /** Optional parameters. */ -export interface SubAssessmentsListOptionalParams +export interface JitNetworkAccessPoliciesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SubAssessmentsListResponse = SecuritySubAssessmentList; +/** Contains response data for the listNext operation. */ +export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface SubAssessmentsGetOptionalParams +export interface JitNetworkAccessPoliciesListByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubAssessmentsGetResponse = SecuritySubAssessment; +/** Contains response data for the listByRegionNext operation. */ +export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface SubAssessmentsListAllNextOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface SubAssessmentsListNextOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SubAssessmentsListNextResponse = SecuritySubAssessmentList; +/** Contains response data for the listByResourceGroupAndRegionNext operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AutomationsListOptionalParams +export interface DiscoveredSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AutomationsListResponse = AutomationList; +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface AutomationsListByResourceGroupOptionalParams +export interface DiscoveredSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type AutomationsListByResourceGroupResponse = AutomationList; +/** Contains response data for the listByHomeRegion operation. */ +export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface AutomationsGetOptionalParams +export interface DiscoveredSecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AutomationsGetResponse = Automation; +export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution; /** Optional parameters. */ -export interface AutomationsCreateOrUpdateOptionalParams +export interface DiscoveredSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AutomationsCreateOrUpdateResponse = Automation; +/** Contains response data for the listNext operation. */ +export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface AutomationsDeleteOptionalParams +export interface DiscoveredSecuritySolutionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByHomeRegionNext operation. */ +export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList; + /** Optional parameters. */ -export interface AutomationsValidateOptionalParams +export interface SecuritySolutionsReferenceDataListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the validate operation. */ -export type AutomationsValidateResponse = AutomationValidationStatus; +/** Contains response data for the list operation. */ +export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList; /** Optional parameters. */ -export interface AutomationsListNextOptionalParams +export interface SecuritySolutionsReferenceDataListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AutomationsListNextResponse = AutomationList; +/** Contains response data for the listByHomeRegion operation. */ +export type SecuritySolutionsReferenceDataListByHomeRegionResponse = SecuritySolutionsReferenceDataList; /** Optional parameters. */ -export interface AutomationsListByResourceGroupNextOptionalParams +export interface ExternalSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type AutomationsListByResourceGroupNextResponse = AutomationList; +/** Contains response data for the list operation. */ +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface AlertsSuppressionRulesListOptionalParams - extends coreClient.OperationOptions { - /** Type of the alert to get rules for */ - alertType?: string; -} +export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList; +/** Contains response data for the listByHomeRegion operation. */ +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface AlertsSuppressionRulesGetOptionalParams +export interface ExternalSecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule; +export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolution; /** Optional parameters. */ -export interface AlertsSuppressionRulesUpdateOptionalParams +export interface ExternalSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule; +/** Contains response data for the listNext operation. */ +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface AlertsSuppressionRulesDeleteOptionalParams +export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByHomeRegionNext operation. */ +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList; + /** Optional parameters. */ -export interface AlertsSuppressionRulesListNextOptionalParams +export interface SecureScoresListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList; +/** Contains response data for the list operation. */ +export type SecureScoresListResponse = SecureScoresList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams +export interface SecureScoresGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList; +/** Contains response data for the get operation. */ +export type SecureScoresGetResponse = SecureScoreItem; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentGetOptionalParams +export interface SecureScoresListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment; +/** Contains response data for the listNext operation. */ +export type SecureScoresListNextResponse = SecureScoresList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoreControlsListBySecureScoreOptionalParams + extends coreClient.OperationOptions { + /** OData expand. Optional. */ + expand?: ExpandControlsEnum; +} -/** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment; +/** Contains response data for the listBySecureScore operation. */ +export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentDeleteOptionalParams +export interface SecureScoreControlsListOptionalParams 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; + /** OData expand. Optional. */ + expand?: ExpandControlsEnum; } +/** Contains response data for the list operation. */ +export type SecureScoreControlsListResponse = SecureScoreControlList; + /** Optional parameters. */ -export interface AssessmentsMetadataListOptionalParams +export interface SecureScoreControlsListBySecureScoreNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataResponseList; +/** Contains response data for the listBySecureScoreNext operation. */ +export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList; /** Optional parameters. */ -export interface AssessmentsMetadataGetOptionalParams +export interface SecureScoreControlsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadataResponse; +/** Contains response data for the listNext operation. */ +export type SecureScoreControlsListNextResponse = SecureScoreControlList; /** Optional parameters. */ -export interface AssessmentsMetadataListBySubscriptionOptionalParams +export interface SecureScoreControlDefinitionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList; + +/** Optional parameters. */ +export interface SecureScoreControlDefinitionsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataResponseList; +export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface AssessmentsMetadataGetInSubscriptionOptionalParams +export interface SecureScoreControlDefinitionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getInSubscription operation. */ -export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadataResponse; +/** Contains response data for the listNext operation. */ +export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface AssessmentsMetadataCreateInSubscriptionOptionalParams +export interface SecureScoreControlDefinitionsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createInSubscription operation. */ -export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadataResponse; +/** Contains response data for the listBySubscriptionNext operation. */ +export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface AssessmentsMetadataDeleteInSubscriptionOptionalParams +export interface SecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type SecuritySolutionsListResponse = SecuritySolutionList; + /** Optional parameters. */ -export interface AssessmentsMetadataListNextOptionalParams +export interface SecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataResponseList; +/** Contains response data for the get operation. */ +export type SecuritySolutionsGetResponse = SecuritySolution; /** Optional parameters. */ -export interface AssessmentsMetadataListBySubscriptionNextOptionalParams +export interface SecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataResponseList; +/** Contains response data for the listNext operation. */ +export type SecuritySolutionsListNextResponse = SecuritySolutionList; /** Optional parameters. */ -export interface AssessmentsListOptionalParams +export interface ConnectorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AssessmentsListResponse = SecurityAssessmentList; +export type ConnectorsListResponse = ConnectorSettingList; /** Optional parameters. */ -export interface AssessmentsGetOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandEnum; -} +export interface ConnectorsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AssessmentsGetResponse = SecurityAssessmentResponse; +export type ConnectorsGetResponse = ConnectorSetting; /** Optional parameters. */ -export interface AssessmentsCreateOrUpdateOptionalParams +export interface ConnectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type AssessmentsCreateOrUpdateResponse = SecurityAssessmentResponse; +export type ConnectorsCreateOrUpdateResponse = ConnectorSetting; /** Optional parameters. */ -export interface AssessmentsDeleteOptionalParams +export interface ConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AssessmentsListNextOptionalParams +export interface ConnectorsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AssessmentsListNextResponse = SecurityAssessmentList; +export type ConnectorsListNextResponse = ConnectorSettingList; /** Optional parameters. */ -export interface AdaptiveApplicationControlsListOptionalParams - extends coreClient.OperationOptions { - /** Include the policy rules */ - includePathRecommendations?: boolean; - /** Return output in a summarized form */ - summary?: boolean; -} +export interface UpdateSensitivitySettingsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups; +/** Contains response data for the updateSensitivitySettings operation. */ +export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; /** Optional parameters. */ -export interface AdaptiveApplicationControlsGetOptionalParams +export interface GetSensitivitySettingsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup; +/** Contains response data for the getSensitivitySettings operation. */ +export type GetSensitivitySettingsOperationResponse = GetSensitivitySettingsResponse; /** Optional parameters. */ -export interface AdaptiveApplicationControlsPutOptionalParams +export interface SensitivitySettingsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the put operation. */ -export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup; +/** Contains response data for the list operation. */ +export type SensitivitySettingsListResponse = GetSensitivitySettingsListResponse; /** Optional parameters. */ -export interface AdaptiveApplicationControlsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AlertsListResponse = AlertList; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams +export interface AlertsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList; +/** Contains response data for the listByResourceGroup operation. */ +export type AlertsListByResourceGroupResponse = AlertList; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsGetOptionalParams +export interface AlertsListSubscriptionLevelByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; - -/** Optional parameters. */ -export interface AdaptiveNetworkHardeningsEnforceOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listSubscriptionLevelByRegion operation. */ +export type AlertsListSubscriptionLevelByRegionResponse = AlertList; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams +export interface AlertsListResourceGroupLevelByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResourceNext operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList; +/** Contains response data for the listResourceGroupLevelByRegion operation. */ +export type AlertsListResourceGroupLevelByRegionResponse = AlertList; /** Optional parameters. */ -export interface AllowedConnectionsListOptionalParams +export interface AlertsGetSubscriptionLevelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AllowedConnectionsListResponse = AllowedConnectionsList; +/** Contains response data for the getSubscriptionLevel operation. */ +export type AlertsGetSubscriptionLevelResponse = Alert; /** Optional parameters. */ -export interface AllowedConnectionsListByHomeRegionOptionalParams +export interface AlertsGetResourceGroupLevelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList; +/** Contains response data for the getResourceGroupLevel operation. */ +export type AlertsGetResourceGroupLevelResponse = Alert; /** Optional parameters. */ -export interface AllowedConnectionsGetOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToDismissOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource; - /** Optional parameters. */ -export interface AllowedConnectionsListNextOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToResolveOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList; - /** Optional parameters. */ -export interface AllowedConnectionsListByHomeRegionNextOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToActivateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList; - /** Optional parameters. */ -export interface TopologyListOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type TopologyListResponse = TopologyList; - /** Optional parameters. */ -export interface TopologyListByHomeRegionOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToResolveOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type TopologyListByHomeRegionResponse = TopologyList; - /** Optional parameters. */ -export interface TopologyGetOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToDismissOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TopologyGetResponse = TopologyResource; +/** Optional parameters. */ +export interface AlertsUpdateResourceGroupLevelStateToActivateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TopologyListNextOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type TopologyListNextResponse = TopologyList; +/** 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 TopologyListByHomeRegionNextOptionalParams +export interface AlertsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type TopologyListByHomeRegionNextResponse = TopologyList; +/** Contains response data for the listNext operation. */ +export type AlertsListNextResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListOptionalParams +export interface AlertsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type AlertsListByResourceGroupNextResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByRegionOptionalParams +export interface AlertsListSubscriptionLevelByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRegion operation. */ -export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the listSubscriptionLevelByRegionNext operation. */ +export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupOptionalParams +export interface AlertsListResourceGroupLevelByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the listResourceGroupLevelByRegionNext operation. */ +export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionOptionalParams +export interface SettingsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupAndRegion operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the list operation. */ +export type SettingsListResponse = SettingsList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesGetOptionalParams +export interface SettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy; +export type SettingsGetResponse = SettingUnion; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesCreateOrUpdateOptionalParams +export interface SettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy; +/** Contains response data for the update operation. */ +export type SettingsUpdateResponse = SettingUnion; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesDeleteOptionalParams +export interface SettingsListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type SettingsListNextResponse = SettingsList; + /** Optional parameters. */ -export interface JitNetworkAccessPoliciesInitiateOptionalParams +export interface SoftwareInventoriesListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the initiate operation. */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest; +/** Contains response data for the listByExtendedResource operation. */ +export type SoftwareInventoriesListByExtendedResourceResponse = SoftwaresList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListNextOptionalParams +export interface SoftwareInventoriesListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the listBySubscription operation. */ +export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByRegionNextOptionalParams +export interface SoftwareInventoriesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRegionNext operation. */ -export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the get operation. */ +export type SoftwareInventoriesGetResponse = Software; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupNextOptionalParams +export interface SoftwareInventoriesListByExtendedResourceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the listByExtendedResourceNext operation. */ +export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionNextOptionalParams +export interface SoftwareInventoriesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupAndRegionNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListOptionalParams +export interface GovernanceRulesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; +export type GovernanceRulesListResponse = GovernanceRuleList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListByHomeRegionOptionalParams +export interface GovernanceRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList; +/** Contains response data for the get operation. */ +export type GovernanceRulesGetResponse = GovernanceRule; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsGetOptionalParams +export interface GovernanceRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution; +/** Contains response data for the createOrUpdate operation. */ +export type GovernanceRulesCreateOrUpdateResponse = GovernanceRule; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListNextOptionalParams - 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. */ + resumeFrom?: string; +} -/** Contains response data for the listNext operation. */ -export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList; +/** Optional parameters. */ +export interface GovernanceRulesExecuteOptionalParams + extends coreClient.OperationOptions { + /** Execute governance rule over a given scope */ + executeGovernanceRuleParams?: ExecuteGovernanceRuleParams; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the execute operation. */ +export type GovernanceRulesExecuteResponse = GovernanceRulesExecuteHeaders; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListByHomeRegionNextOptionalParams +export interface GovernanceRulesOperationResultsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList; +/** Contains response data for the operationResults operation. */ +export type GovernanceRulesOperationResultsResponse = OperationResultAutoGenerated; /** Optional parameters. */ -export interface SecuritySolutionsReferenceDataListOptionalParams +export interface GovernanceRulesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList; +/** Contains response data for the listNext operation. */ +export type GovernanceRulesListNextResponse = GovernanceRuleList; /** Optional parameters. */ -export interface SecuritySolutionsReferenceDataListByHomeRegionOptionalParams +export interface GovernanceAssignmentsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type SecuritySolutionsReferenceDataListByHomeRegionResponse = SecuritySolutionsReferenceDataList; +/** Contains response data for the list operation. */ +export type GovernanceAssignmentsListResponse = GovernanceAssignmentsList; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListOptionalParams +export interface GovernanceAssignmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList; +/** Contains response data for the get operation. */ +export type GovernanceAssignmentsGetResponse = GovernanceAssignment; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams +export interface GovernanceAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList; +/** Contains response data for the createOrUpdate operation. */ +export type GovernanceAssignmentsCreateOrUpdateResponse = GovernanceAssignment; /** Optional parameters. */ -export interface ExternalSecuritySolutionsGetOptionalParams +export interface GovernanceAssignmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolution; - /** Optional parameters. */ -export interface ExternalSecuritySolutionsListNextOptionalParams +export interface GovernanceAssignmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList; +export type GovernanceAssignmentsListNextResponse = GovernanceAssignmentsList; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams +export interface ApplicationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList; +/** Contains response data for the list operation. */ +export type ApplicationsListResponse = ApplicationsList; /** Optional parameters. */ -export interface SecureScoresListOptionalParams +export interface ApplicationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoresListResponse = SecureScoresList; +/** Contains response data for the listNext operation. */ +export type ApplicationsListNextResponse = ApplicationsList; /** Optional parameters. */ -export interface SecureScoresGetOptionalParams +export interface ApplicationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecureScoresGetResponse = SecureScoreItem; +export type ApplicationGetResponse = Application; /** Optional parameters. */ -export interface SecureScoresListNextOptionalParams +export interface ApplicationCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecureScoresListNextResponse = SecureScoresList; +/** Contains response data for the createOrUpdate operation. */ +export type ApplicationCreateOrUpdateResponse = Application; /** Optional parameters. */ -export interface SecureScoreControlsListBySecureScoreOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandControlsEnum; -} - -/** Contains response data for the listBySecureScore operation. */ -export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList; +export interface ApplicationDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SecureScoreControlsListOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandControlsEnum; -} +export interface SecurityConnectorApplicationsListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SecureScoreControlsListResponse = SecureScoreControlList; +export type SecurityConnectorApplicationsListResponse = ApplicationsList; /** Optional parameters. */ -export interface SecureScoreControlsListBySecureScoreNextOptionalParams +export interface SecurityConnectorApplicationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySecureScoreNext operation. */ -export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList; +/** Contains response data for the listNext operation. */ +export type SecurityConnectorApplicationsListNextResponse = ApplicationsList; /** Optional parameters. */ -export interface SecureScoreControlsListNextOptionalParams +export interface SecurityConnectorApplicationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecureScoreControlsListNextResponse = SecureScoreControlList; +/** Contains response data for the get operation. */ +export type SecurityConnectorApplicationGetResponse = Application; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListOptionalParams +export interface SecurityConnectorApplicationCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList; +/** Contains response data for the createOrUpdate operation. */ +export type SecurityConnectorApplicationCreateOrUpdateResponse = Application; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListBySubscriptionOptionalParams +export interface SecurityConnectorApplicationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList; - /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListNextOptionalParams +export interface APICollectionsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList; +/** Contains response data for the listBySubscription operation. */ +export type APICollectionsListBySubscriptionResponse = ApiCollectionList; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListBySubscriptionNextOptionalParams +export interface APICollectionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList; +/** Contains response data for the listByResourceGroup operation. */ +export type APICollectionsListByResourceGroupResponse = ApiCollectionList; /** Optional parameters. */ -export interface SecuritySolutionsListOptionalParams +export interface APICollectionsListByAzureApiManagementServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecuritySolutionsListResponse = SecuritySolutionList; +/** Contains response data for the listByAzureApiManagementService operation. */ +export type APICollectionsListByAzureApiManagementServiceResponse = ApiCollectionList; /** Optional parameters. */ -export interface SecuritySolutionsGetOptionalParams +export interface APICollectionsGetByAzureApiManagementServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecuritySolutionsGetResponse = SecuritySolution; +/** Contains response data for the getByAzureApiManagementService operation. */ +export type APICollectionsGetByAzureApiManagementServiceResponse = ApiCollection; /** Optional parameters. */ -export interface SecuritySolutionsListNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listNext operation. */ -export type SecuritySolutionsListNextResponse = SecuritySolutionList; +/** Contains response data for the onboardAzureApiManagementApi operation. */ +export type APICollectionsOnboardAzureApiManagementApiResponse = ApiCollection; /** Optional parameters. */ -export interface ConnectorsListOptionalParams +export interface APICollectionsOffboardAzureApiManagementApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ConnectorsListResponse = ConnectorSettingList; - /** Optional parameters. */ -export interface ConnectorsGetOptionalParams +export interface APICollectionsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ConnectorsGetResponse = ConnectorSetting; +/** Contains response data for the listBySubscriptionNext operation. */ +export type APICollectionsListBySubscriptionNextResponse = ApiCollectionList; /** Optional parameters. */ -export interface ConnectorsCreateOrUpdateOptionalParams +export interface APICollectionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ConnectorsCreateOrUpdateResponse = ConnectorSetting; +/** Contains response data for the listByResourceGroupNext operation. */ +export type APICollectionsListByResourceGroupNextResponse = ApiCollectionList; /** Optional parameters. */ -export interface ConnectorsDeleteOptionalParams +export interface APICollectionsListByAzureApiManagementServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAzureApiManagementServiceNext operation. */ +export type APICollectionsListByAzureApiManagementServiceNextResponse = ApiCollectionList; + /** Optional parameters. */ -export interface ConnectorsListNextOptionalParams +export interface SqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ConnectorsListNextResponse = ConnectorSettingList; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScansGetResponse = Scan; /** Optional parameters. */ -export interface AlertsListOptionalParams extends coreClient.OperationOptions {} +export interface SqlVulnerabilityAssessmentScansListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AlertsListResponse = AlertList; +export type SqlVulnerabilityAssessmentScansListResponse = Scans; /** Optional parameters. */ -export interface AlertsListByResourceGroupOptionalParams +export interface SqlVulnerabilityAssessmentScanResultsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type AlertsListByResourceGroupResponse = AlertList; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult; /** Optional parameters. */ -export interface AlertsListSubscriptionLevelByRegionOptionalParams +export interface SqlVulnerabilityAssessmentScanResultsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSubscriptionLevelByRegion operation. */ -export type AlertsListSubscriptionLevelByRegionResponse = AlertList; +/** Contains response data for the list operation. */ +export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults; /** Optional parameters. */ -export interface AlertsListResourceGroupLevelByRegionOptionalParams - extends coreClient.OperationOptions {} +export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** The baseline results for this rule. */ + body?: RuleResultsInput; +} -/** Contains response data for the listResourceGroupLevelByRegion operation. */ -export type AlertsListResourceGroupLevelByRegionResponse = AlertList; +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults; /** Optional parameters. */ -export interface AlertsGetSubscriptionLevelOptionalParams +export interface SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSubscriptionLevel operation. */ -export type AlertsGetSubscriptionLevelResponse = Alert; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults; /** Optional parameters. */ -export interface AlertsGetResourceGroupLevelOptionalParams +export interface SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getResourceGroupLevel operation. */ -export type AlertsGetResourceGroupLevelResponse = Alert; - /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToDismissOptionalParams +export interface SqlVulnerabilityAssessmentBaselineRulesListOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToResolveOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults; /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToActivateOptionalParams - extends coreClient.OperationOptions {} +export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams + extends coreClient.OperationOptions { + /** The baseline rules. */ + body?: RulesResultsInput; +} -/** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the add operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToResolveOptionalParams +export interface SecurityConnectorsListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type SecurityConnectorsListResponse = SecurityConnectorsList; + /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToDismissOptionalParams +export interface SecurityConnectorsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroup operation. */ +export type SecurityConnectorsListByResourceGroupResponse = SecurityConnectorsList; + /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToActivateOptionalParams +export interface SecurityConnectorsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type SecurityConnectorsGetResponse = SecurityConnector; + /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams +export interface SecurityConnectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface AlertsSimulateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the createOrUpdate operation. */ +export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; /** Optional parameters. */ -export interface AlertsListNextOptionalParams +export interface SecurityConnectorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AlertsListNextResponse = AlertList; +/** Contains response data for the update operation. */ +export type SecurityConnectorsUpdateResponse = SecurityConnector; /** Optional parameters. */ -export interface AlertsListByResourceGroupNextOptionalParams +export interface SecurityConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type AlertsListByResourceGroupNextResponse = AlertList; - /** Optional parameters. */ -export interface AlertsListSubscriptionLevelByRegionNextOptionalParams +export interface SecurityConnectorsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSubscriptionLevelByRegionNext operation. */ -export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList; +/** Contains response data for the listNext operation. */ +export type SecurityConnectorsListNextResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface AlertsListResourceGroupLevelByRegionNextOptionalParams +export interface SecurityConnectorsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceGroupLevelByRegionNext operation. */ -export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type SecurityConnectorsListByResourceGroupNextResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface SettingsListOptionalParams +export interface SecurityOperatorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SettingsListResponse = SettingsList; +export type SecurityOperatorsListResponse = SecurityOperatorList; /** Optional parameters. */ -export interface SettingsGetOptionalParams +export interface SecurityOperatorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SettingsGetResponse = SettingUnion; +export type SecurityOperatorsGetResponse = SecurityOperator; /** Optional parameters. */ -export interface SettingsUpdateOptionalParams +export interface SecurityOperatorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SettingsUpdateResponse = SettingUnion; +/** Contains response data for the createOrUpdate operation. */ +export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; /** Optional parameters. */ -export interface SettingsListNextOptionalParams +export interface SecurityOperatorsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SettingsListNextResponse = SettingsList; - /** Optional parameters. */ -export interface IngestionSettingsListOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type IngestionSettingsListResponse = IngestionSettingList; +/** Contains response data for the listBySubscription operation. */ +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse = ServerVulnerabilityAssessmentsSettingsList; /** Optional parameters. */ -export interface IngestionSettingsGetOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IngestionSettingsGetResponse = IngestionSetting; +export type ServerVulnerabilityAssessmentsSettingsGetResponse = ServerVulnerabilityAssessmentsSettingUnion; /** Optional parameters. */ -export interface IngestionSettingsCreateOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type IngestionSettingsCreateResponse = IngestionSetting; - -/** Optional parameters. */ -export interface IngestionSettingsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = ServerVulnerabilityAssessmentsSettingUnion; /** Optional parameters. */ -export interface IngestionSettingsListTokensOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listTokens operation. */ -export type IngestionSettingsListTokensResponse = IngestionSettingToken; - /** Optional parameters. */ -export interface IngestionSettingsListConnectionStringsOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listConnectionStrings operation. */ -export type IngestionSettingsListConnectionStringsResponse = ConnectionStrings; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse = ServerVulnerabilityAssessmentsSettingsList; /** Optional parameters. */ -export interface IngestionSettingsListNextOptionalParams +export interface HealthReportsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type IngestionSettingsListNextResponse = IngestionSettingList; +/** Contains response data for the list operation. */ +export type HealthReportsListResponse = HealthReportsList; /** Optional parameters. */ -export interface SoftwareInventoriesListByExtendedResourceOptionalParams +export interface HealthReportsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type SoftwareInventoriesListByExtendedResourceResponse = SoftwaresList; +/** Contains response data for the get operation. */ +export type HealthReportsGetResponse = HealthReport; /** Optional parameters. */ -export interface SoftwareInventoriesListBySubscriptionOptionalParams +export interface HealthReportsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList; +/** Contains response data for the listNext operation. */ +export type HealthReportsListNextResponse = HealthReportsList; /** Optional parameters. */ -export interface SoftwareInventoriesGetOptionalParams +export interface DefenderForStorageGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SoftwareInventoriesGetResponse = Software; +export type DefenderForStorageGetResponse = DefenderForStorageSetting; /** Optional parameters. */ -export interface SoftwareInventoriesListByExtendedResourceNextOptionalParams +export interface DefenderForStorageCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResourceNext operation. */ -export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList; +/** Contains response data for the create operation. */ +export type DefenderForStorageCreateResponse = DefenderForStorageSetting; /** Optional parameters. */ -export interface SoftwareInventoriesListBySubscriptionNextOptionalParams +export interface AzureDevOpsOrgsListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList; +/** Contains response data for the listAvailable operation. */ +export type AzureDevOpsOrgsListAvailableResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface GovernanceRulesListOptionalParams +export interface AzureDevOpsOrgsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type GovernanceRulesListResponse = GovernanceRuleList; +export type AzureDevOpsOrgsListResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface GovernanceRulesGetOptionalParams +export interface AzureDevOpsOrgsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GovernanceRulesGetResponse = GovernanceRule; - -/** Optional parameters. */ -export interface GovernanceRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type GovernanceRulesCreateOrUpdateResponse = GovernanceRule; +export type AzureDevOpsOrgsGetResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface GovernanceRulesDeleteOptionalParams +export interface AzureDevOpsOrgsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8821,327 +10373,284 @@ export interface GovernanceRulesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type AzureDevOpsOrgsCreateOrUpdateResponse = AzureDevOpsOrg; + /** Optional parameters. */ -export interface GovernanceRulesExecuteOptionalParams +export interface AzureDevOpsOrgsUpdateOptionalParams extends coreClient.OperationOptions { - /** Execute governance rule over a given scope */ - executeGovernanceRuleParams?: ExecuteGovernanceRuleParams; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the execute operation. */ -export type GovernanceRulesExecuteResponse = GovernanceRulesExecuteHeaders; - -/** Optional parameters. */ -export interface GovernanceRulesOperationResultsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the operationResults operation. */ -export type GovernanceRulesOperationResultsResponse = OperationResultAutoGenerated; +/** Contains response data for the update operation. */ +export type AzureDevOpsOrgsUpdateResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface GovernanceRulesListNextOptionalParams +export interface AzureDevOpsOrgsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type GovernanceRulesListNextResponse = GovernanceRuleList; +export type AzureDevOpsOrgsListNextResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface GovernanceAssignmentsListOptionalParams +export interface AzureDevOpsProjectsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type GovernanceAssignmentsListResponse = GovernanceAssignmentsList; +export type AzureDevOpsProjectsListResponse = AzureDevOpsProjectListResponse; /** Optional parameters. */ -export interface GovernanceAssignmentsGetOptionalParams +export interface AzureDevOpsProjectsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GovernanceAssignmentsGetResponse = GovernanceAssignment; +export type AzureDevOpsProjectsGetResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface GovernanceAssignmentsCreateOrUpdateOptionalParams - 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 createOrUpdate operation. */ -export type GovernanceAssignmentsCreateOrUpdateResponse = GovernanceAssignment; +export type AzureDevOpsProjectsCreateOrUpdateResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface GovernanceAssignmentsDeleteOptionalParams - 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 GovernanceAssignmentsListNextOptionalParams +export interface AzureDevOpsProjectsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type GovernanceAssignmentsListNextResponse = GovernanceAssignmentsList; +export type AzureDevOpsProjectsListNextResponse = AzureDevOpsProjectListResponse; /** Optional parameters. */ -export interface ApplicationsListOptionalParams +export interface AzureDevOpsReposListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ApplicationsListResponse = ApplicationsList; - -/** Optional parameters. */ -export interface ApplicationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ApplicationsListNextResponse = ApplicationsList; +export type AzureDevOpsReposListResponse = AzureDevOpsRepositoryListResponse; /** Optional parameters. */ -export interface ApplicationGetOptionalParams +export interface AzureDevOpsReposGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApplicationGetResponse = Application; +export type AzureDevOpsReposGetResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface ApplicationCreateOrUpdateOptionalParams - 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 ApplicationCreateOrUpdateResponse = Application; +export type AzureDevOpsReposCreateOrUpdateResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface ApplicationDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsReposUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type AzureDevOpsReposUpdateResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface SecurityConnectorApplicationsListOptionalParams +export interface AzureDevOpsReposListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecurityConnectorApplicationsListResponse = ApplicationsList; +/** Contains response data for the listNext operation. */ +export type AzureDevOpsReposListNextResponse = AzureDevOpsRepositoryListResponse; /** Optional parameters. */ -export interface SecurityConnectorApplicationsListNextOptionalParams +export interface DevOpsConfigurationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecurityConnectorApplicationsListNextResponse = ApplicationsList; +/** Contains response data for the list operation. */ +export type DevOpsConfigurationsListResponse = DevOpsConfigurationListResponse; /** Optional parameters. */ -export interface SecurityConnectorApplicationGetOptionalParams +export interface DevOpsConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityConnectorApplicationGetResponse = Application; +export type DevOpsConfigurationsGetResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - 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 SecurityConnectorApplicationCreateOrUpdateResponse = Application; - -/** Optional parameters. */ -export interface SecurityConnectorApplicationDeleteOptionalParams - extends coreClient.OperationOptions {} +export type DevOpsConfigurationsCreateOrUpdateResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface APICollectionListOptionalParams - 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 list operation. */ -export type APICollectionListResponse = ApiCollectionResponseList; +/** Contains response data for the update operation. */ +export type DevOpsConfigurationsUpdateResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface APICollectionGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type APICollectionGetResponse = ApiCollectionResponse; +export interface DevOpsConfigurationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface APICollectionListNextOptionalParams +export interface DevOpsConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type APICollectionListNextResponse = ApiCollectionResponseList; +export type DevOpsConfigurationsListNextResponse = DevOpsConfigurationListResponse; /** Optional parameters. */ -export interface APICollectionOnboardingCreateOptionalParams +export interface GitHubOwnersListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type APICollectionOnboardingCreateResponse = ApiCollectionResponse; - -/** Optional parameters. */ -export interface APICollectionOffboardingDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listAvailable operation. */ +export type GitHubOwnersListAvailableResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface HealthReportsListOptionalParams +export interface GitHubOwnersListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type HealthReportsListResponse = HealthReportsList; - -/** Optional parameters. */ -export interface HealthReportsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type HealthReportsListNextResponse = HealthReportsList; +export type GitHubOwnersListResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface HealthReportGetOptionalParams +export interface GitHubOwnersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type HealthReportGetResponse = HealthReport; +export type GitHubOwnersGetResponse = GitHubOwner; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansGetOptionalParams +export interface GitHubOwnersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScansGetResponse = Scan; +/** Contains response data for the listNext operation. */ +export type GitHubOwnersListNextResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansListOptionalParams +export interface GitHubReposListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlVulnerabilityAssessmentScansListResponse = Scans; +export type GitHubReposListResponse = GitHubRepositoryListResponse; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultsGetOptionalParams +export interface GitHubReposGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult; - -/** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults; - -/** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** The baseline results for this rule. */ - body?: RuleResultsInput; -} - -/** Contains response data for the createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults; +export type GitHubReposGetResponse = GitHubRepository; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams +export interface GitHubReposListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults; - -/** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type GitHubReposListNextResponse = GitHubRepositoryListResponse; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesListOptionalParams +export interface GitLabGroupsListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults; - -/** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams - extends coreClient.OperationOptions { - /** The baseline rules. */ - body?: RulesResultsInput; -} - -/** Contains response data for the add operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults; +/** Contains response data for the listAvailable operation. */ +export type GitLabGroupsListAvailableResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface SecurityConnectorsListOptionalParams +export interface GitLabGroupsListOptionalParams 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; +export type GitLabGroupsListResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface SecurityConnectorsGetOptionalParams +export interface GitLabGroupsGetOptionalParams 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 {} +export type GitLabGroupsGetResponse = GitLabGroup; /** Optional parameters. */ -export interface SecurityConnectorsListNextOptionalParams +export interface GitLabGroupsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityConnectorsListNextResponse = SecurityConnectorsList; +export type GitLabGroupsListNextResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupNextOptionalParams +export interface GitLabSubgroupsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type SecurityConnectorsListByResourceGroupNextResponse = SecurityConnectorsList; +/** Contains response data for the list operation. */ +export type GitLabSubgroupsListResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface SecurityOperatorsListOptionalParams +export interface GitLabProjectsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SecurityOperatorsListResponse = SecurityOperatorList; +export type GitLabProjectsListResponse = GitLabProjectListResponse; /** Optional parameters. */ -export interface SecurityOperatorsGetOptionalParams +export interface GitLabProjectsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityOperatorsGetResponse = SecurityOperator; +export type GitLabProjectsGetResponse = GitLabProject; /** Optional parameters. */ -export interface SecurityOperatorsCreateOrUpdateOptionalParams +export interface GitLabProjectsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; +/** Contains response data for the listNext operation. */ +export type GitLabProjectsListNextResponse = GitLabProjectListResponse; /** Optional parameters. */ -export interface SecurityOperatorsDeleteOptionalParams +export interface DevOpsOperationResultsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type DevOpsOperationResultsGetResponse = OperationStatusResult; + /** Optional parameters. */ export interface SecurityCenterOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index 99464b1fe025..caf3c0edd433 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -3609,6 +3609,268 @@ export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { } }; +export const UpdateSensitivitySettingsRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateSensitivitySettingsRequest", + modelProperties: { + sensitiveInfoTypesIds: { + serializedName: "sensitiveInfoTypesIds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Uuid" + } + } + } + }, + sensitivityThresholdLabelOrder: { + serializedName: "sensitivityThresholdLabelOrder", + type: { + name: "Number" + } + }, + sensitivityThresholdLabelId: { + serializedName: "sensitivityThresholdLabelId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const GetSensitivitySettingsResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponse", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GetSensitivitySettingsResponseProperties" + } + } + } + } +}; + +export const GetSensitivitySettingsResponseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponseProperties", + modelProperties: { + sensitiveInfoTypesIds: { + serializedName: "sensitiveInfoTypesIds", + type: { + name: "Sequence", + element: { + type: { + name: "Uuid" + } + } + } + }, + sensitivityThresholdLabelOrder: { + serializedName: "sensitivityThresholdLabelOrder", + type: { + name: "Number" + } + }, + sensitivityThresholdLabelId: { + serializedName: "sensitivityThresholdLabelId", + type: { + name: "Uuid" + } + }, + mipInformation: { + serializedName: "mipInformation", + type: { + name: "Composite", + className: "GetSensitivitySettingsResponsePropertiesMipInformation" + } + } + } + } +}; + +export const GetSensitivitySettingsResponsePropertiesMipInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponsePropertiesMipInformation", + modelProperties: { + mipIntegrationStatus: { + serializedName: "mipIntegrationStatus", + type: { + name: "String" + } + }, + labels: { + serializedName: "labels", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Label" + } + } + } + }, + customInfoTypes: { + serializedName: "customInfoTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InfoType" + } + } + } + }, + builtInInfoTypes: { + serializedName: "builtInInfoTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuiltInInfoType" + } + } + } + } + } + } +}; + +export const Label: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Label", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + } + } + } +}; + +export const InfoType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InfoType", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const BuiltInInfoType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuiltInInfoType", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const GetSensitivitySettingsListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponse" + } + } + } + } + } + } +}; + export const AlertList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3759,20 +4021,19 @@ export const SettingsList: coreClient.CompositeMapper = { } }; -export const IngestionSettingList: coreClient.CompositeMapper = { +export const SoftwaresList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IngestionSettingList", + className: "SoftwaresList", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IngestionSetting" + className: "Software" } } } @@ -3788,59 +4049,48 @@ export const IngestionSettingList: coreClient.CompositeMapper = { } }; -export const IngestionSettingToken: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IngestionSettingToken", - modelProperties: { - token: { - serializedName: "token", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ConnectionStrings: coreClient.CompositeMapper = { +export const GovernanceRuleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionStrings", + className: "GovernanceRuleList", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IngestionConnectionString" + className: "GovernanceRule" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const IngestionConnectionString: coreClient.CompositeMapper = { +export const GovernanceRuleOwnerSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IngestionConnectionString", + className: "GovernanceRuleOwnerSource", modelProperties: { - location: { - serializedName: "location", - readOnly: true, + type: { + serializedName: "type", type: { name: "String" } }, value: { serializedName: "value", - readOnly: true, type: { name: "String" } @@ -3849,85 +4099,7 @@ export const IngestionConnectionString: coreClient.CompositeMapper = { } }; -export const SoftwaresList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SoftwaresList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Software" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const GovernanceRuleList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GovernanceRuleList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GovernanceRule" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const GovernanceRuleOwnerSource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GovernanceRuleOwnerSource", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const GovernanceRuleEmailNotification: coreClient.CompositeMapper = { +export const GovernanceRuleEmailNotification: coreClient.CompositeMapper = { type: { name: "Composite", className: "GovernanceRuleEmailNotification", @@ -4148,10 +4320,10 @@ export const ApplicationsList: coreClient.CompositeMapper = { } }; -export const ApiCollectionResponseList: coreClient.CompositeMapper = { +export const ApiCollectionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiCollectionResponseList", + className: "ApiCollectionList", modelProperties: { value: { serializedName: "value", @@ -4161,7 +4333,7 @@ export const ApiCollectionResponseList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiCollectionResponse" + className: "ApiCollection" } } } @@ -4249,428 +4421,145 @@ export const ErrorDetail: coreClient.CompositeMapper = { } }; -export const HealthReportsList: coreClient.CompositeMapper = { +export const ScanProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HealthReportsList", + className: "ScanProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + triggerType: { + serializedName: "triggerType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthReport" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + state: { + serializedName: "state", type: { name: "String" } - } - } - } -}; - -export const ResourceDetailsAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceDetailsAutoGenerated", - modelProperties: { - source: { - serializedName: "source", + }, + server: { + serializedName: "server", type: { name: "String" } }, - id: { - serializedName: "id", - readOnly: true, + database: { + serializedName: "database", type: { name: "String" } }, - connectorId: { - serializedName: "connectorId", - readOnly: true, + sqlVersion: { + serializedName: "sqlVersion", type: { name: "String" } - } - } - } -}; - -export const EnvironmentDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EnvironmentDetails", - modelProperties: { - nativeResourceId: { - serializedName: "nativeResourceId", + }, + startTime: { + serializedName: "startTime", type: { - name: "String" + name: "DateTime" } }, - environmentHierarchyId: { - serializedName: "environmentHierarchyId", + endTime: { + serializedName: "endTime", type: { - name: "String" + name: "DateTime" } }, - organizationalHierarchyId: { - serializedName: "organizationalHierarchyId", + highSeverityFailedRulesCount: { + serializedName: "highSeverityFailedRulesCount", type: { - name: "String" + name: "Number" } }, - subscriptionId: { - serializedName: "subscriptionId", + mediumSeverityFailedRulesCount: { + serializedName: "mediumSeverityFailedRulesCount", type: { - name: "String" + name: "Number" } }, - tenantId: { - serializedName: "tenantId", + lowSeverityFailedRulesCount: { + serializedName: "lowSeverityFailedRulesCount", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const HealthDataClassification: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HealthDataClassification", - modelProperties: { - component: { - serializedName: "component", + }, + totalPassedRulesCount: { + serializedName: "totalPassedRulesCount", type: { - name: "String" + name: "Number" } }, - scenario: { - serializedName: "scenario", + totalFailedRulesCount: { + serializedName: "totalFailedRulesCount", type: { - name: "String" + name: "Number" } }, - scope: { - serializedName: "scope", + totalRulesCount: { + serializedName: "totalRulesCount", type: { - name: "String" + name: "Number" + } + }, + isBaselineApplied: { + serializedName: "isBaselineApplied", + type: { + name: "Boolean" + } + }, + lastScanTime: { + serializedName: "lastScanTime", + type: { + name: "DateTime" } } } } }; -export const StatusAutoGenerated: coreClient.CompositeMapper = { +export const Scans: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StatusAutoGenerated", + className: "Scans", modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - statusChangeDate: { - serializedName: "statusChangeDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - firstEvaluationDate: { - serializedName: "firstEvaluationDate", - readOnly: true, + value: { + serializedName: "value", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Scan" + } + } } } } } }; -export const Issue: coreClient.CompositeMapper = { +export const ScanResultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Issue", + className: "ScanResultProperties", modelProperties: { - issueKey: { - serializedName: "issueKey", - required: true, + ruleId: { + serializedName: "ruleId", type: { name: "String" } }, - issueName: { - serializedName: "issueName", + status: { + serializedName: "status", type: { name: "String" } }, - securityValues: { - serializedName: "securityValues", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - issueDescription: { - serializedName: "issueDescription", - type: { - name: "String" - } - }, - remediationSteps: { - serializedName: "remediationSteps", - type: { - name: "String" - } - }, - remediationScript: { - serializedName: "remediationScript", - type: { - name: "String" - } - }, - issueAdditionalData: { - serializedName: "issueAdditionalData", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponseAutoGenerated", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetailAutoGenerated" - } - } - } - } -}; - -export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String" - } - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetailAutoGenerated" - } - } - } - }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } -}; - -export const 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" - } - }, - lowSeverityFailedRulesCount: { - serializedName: "lowSeverityFailedRulesCount", - type: { - name: "Number" - } - }, - totalPassedRulesCount: { - serializedName: "totalPassedRulesCount", - type: { - name: "Number" - } - }, - totalFailedRulesCount: { - serializedName: "totalFailedRulesCount", - type: { - name: "Number" - } - }, - totalRulesCount: { - serializedName: "totalRulesCount", - type: { - name: "Number" - } - }, - isBaselineApplied: { - serializedName: "isBaselineApplied", - type: { - name: "Boolean" - } - }, - lastScanTime: { - serializedName: "lastScanTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const Scans: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Scans", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Scan" - } - } - } - } - } - } -}; - -export const ScanResultProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScanResultProperties", - modelProperties: { - ruleId: { - serializedName: "ruleId", - type: { - name: "String" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - isTrimmed: { - serializedName: "isTrimmed", + isTrimmed: { + serializedName: "isTrimmed", type: { name: "Boolean" } @@ -5102,27 +4991,1260 @@ export const RulesResultsInput: coreClient.CompositeMapper = { } }; -export const SecurityConnectorsList: coreClient.CompositeMapper = { +export const SecurityConnectorsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityConnectorsList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityConnector" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CloudOffering: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: { + serializedName: "offeringType", + clientName: "offeringType" + }, + modelProperties: { + offeringType: { + serializedName: "offeringType", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: { + serializedName: "environmentType", + clientName: "environmentType" + }, + modelProperties: { + environmentType: { + serializedName: "environmentType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SecurityOperatorList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityOperatorList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityOperator" + } + } + } + } + } + } +}; + +export const Identity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String" + } + }, + type: { + defaultValue: "SystemAssigned", + isConstant: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ServerVulnerabilityAssessmentsSettingsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsSettingsList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsSetting" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAutoGenerated", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const HealthReportsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HealthReportsList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthReport" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceDetailsAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceDetailsAutoGenerated", + modelProperties: { + source: { + serializedName: "source", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + connectorId: { + serializedName: "connectorId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentDetails", + modelProperties: { + nativeResourceId: { + serializedName: "nativeResourceId", + type: { + name: "String" + } + }, + environmentHierarchyId: { + serializedName: "environmentHierarchyId", + type: { + name: "String" + } + }, + organizationalHierarchyId: { + serializedName: "organizationalHierarchyId", + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const HealthDataClassification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HealthDataClassification", + modelProperties: { + component: { + serializedName: "component", + type: { + name: "String" + } + }, + scenario: { + serializedName: "scenario", + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + type: { + name: "String" + } + } + } + } +}; + +export const StatusAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StatusAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "String" + } + }, + lastScannedDate: { + serializedName: "lastScannedDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + statusChangeDate: { + serializedName: "statusChangeDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + firstEvaluationDate: { + serializedName: "firstEvaluationDate", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const Issue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Issue", + modelProperties: { + issueKey: { + serializedName: "issueKey", + required: true, + type: { + name: "String" + } + }, + issueName: { + serializedName: "issueName", + type: { + name: "String" + } + }, + securityValues: { + serializedName: "securityValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + issueDescription: { + serializedName: "issueDescription", + type: { + name: "String" + } + }, + remediationSteps: { + serializedName: "remediationSteps", + type: { + name: "String" + } + }, + remediationScript: { + serializedName: "remediationScript", + type: { + name: "String" + } + }, + issueAdditionalData: { + serializedName: "issueAdditionalData", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationStatusAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsOrgListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureDevOpsOrg" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AzureDevOpsOrgProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsOrgProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String" + } + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String" + } + }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation" + } + } + } + } +}; + +export const ActionableRemediation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActionableRemediation", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String" + } + }, + categoryConfigurations: { + serializedName: "categoryConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CategoryConfiguration" + } + } + } + }, + branchConfiguration: { + serializedName: "branchConfiguration", + type: { + name: "Composite", + className: "TargetBranchConfiguration" + } + }, + inheritFromParentState: { + serializedName: "inheritFromParentState", + type: { + name: "String" + } + } + } + } +}; + +export const CategoryConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CategoryConfiguration", + modelProperties: { + minimumSeverityLevel: { + serializedName: "minimumSeverityLevel", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + } + } + } +}; + +export const TargetBranchConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TargetBranchConfiguration", + modelProperties: { + branchNames: { + serializedName: "branchNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + annotateDefaultBranch: { + serializedName: "annotateDefaultBranch", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceAutoGenerated2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAutoGenerated2", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated" + } + } + } + } +}; + +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsProjectListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureDevOpsProject" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AzureDevOpsProjectProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsProjectProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String" + } + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + }, + parentOrgName: { + serializedName: "parentOrgName", + type: { + name: "String" + } + }, + projectId: { + serializedName: "projectId", + readOnly: true, + type: { + name: "String" + } + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String" + } + }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation" + } + } + } + } +}; + +export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsRepositoryListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureDevOpsRepository" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AzureDevOpsRepositoryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsRepositoryProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String" + } + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + }, + parentOrgName: { + serializedName: "parentOrgName", + type: { + name: "String" + } + }, + parentProjectName: { + serializedName: "parentProjectName", + type: { + name: "String" + } + }, + repoId: { + serializedName: "repoId", + readOnly: true, + type: { + name: "String" + } + }, + repoUrl: { + serializedName: "repoUrl", + readOnly: true, + type: { + name: "String" + } + }, + visibility: { + serializedName: "visibility", + readOnly: true, + type: { + name: "String" + } + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String" + } + }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation" + } + } + } + } +}; + +export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsConfigurationListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DevOpsConfiguration" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsConfigurationProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String" + } + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + 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" + } + } + } + } + } + } +}; + +export const Authorization: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Authorization", + modelProperties: { + code: { + serializedName: "code", + 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", + 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", + 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", + 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: "SecurityConnectorsList", + className: "GitLabProjectListResponse", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityConnector" + className: "GitLabProject" } } } }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String" } @@ -5131,103 +6253,133 @@ export const SecurityConnectorsList: coreClient.CompositeMapper = { } }; -export const CloudOffering: coreClient.CompositeMapper = { +export const GitLabProjectProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: { - serializedName: "offeringType", - clientName: "offeringType" - }, + className: "GitLabProjectProperties", modelProperties: { - offeringType: { - serializedName: "offeringType", - required: true, + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", type: { name: "String" } - } - } - } -}; - -export const EnvironmentData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EnvironmentData", - uberParent: "EnvironmentData", - polymorphicDiscriminator: { - serializedName: "environmentType", - clientName: "environmentType" - }, - modelProperties: { - environmentType: { - serializedName: "environmentType", - required: true, + }, + fullyQualifiedName: { + serializedName: "fullyQualifiedName", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SecurityOperatorList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityOperatorList", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + fullyQualifiedFriendlyName: { + serializedName: "fullyQualifiedFriendlyName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityOperator" - } - } + 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 Identity: coreClient.CompositeMapper = { +export const OperationStatusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Identity", + className: "OperationStatusResult", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - type: { - defaultValue: "SystemAssigned", - isConstant: true, - serializedName: "type", + status: { + serializedName: "status", + required: true, type: { name: "String" } + }, + percentComplete: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "percentComplete", + type: { + name: "Number" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + operations: { + serializedName: "operations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationStatusResult" + } + } + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated" + } } } } @@ -6214,8 +7366,122 @@ export const DefenderForContainersGcpOfferingNativeCloudConnection: coreClient.C name: "String" } }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String" + } + } + } + } +}; + +export const DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", + modelProperties: { + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String" + } + }, + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String" + } + } + } + } +}; + +export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingVmScanners", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingVmScannersConfiguration" + } + } + } + } +}; + +export const DefenderCspmAwsOfferingVmScannersConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingVmScannersConfiguration", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String" + } + }, + scanningMode: { + serializedName: "scanningMode", + type: { + name: "String" + } + }, + exclusionTags: { + serializedName: "exclusionTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const DefenderCspmAwsOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { + type: { + 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" + } + }, + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { name: "String" } @@ -6224,114 +7490,118 @@ export const DefenderForContainersGcpOfferingNativeCloudConnection: coreClient.C } }; -export const DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection: coreClient.CompositeMapper = { +export const AzureDevOpsOrganizationConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", + className: "AzureDevOpsOrganizationConfiguration", modelProperties: { - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", + autoDiscovery: { + serializedName: "autoDiscovery", type: { name: "String" } }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", + projectConfigs: { + serializedName: "projectConfigs", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AzureDevOpsProjectConfiguration" + } + } } } } } }; -export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { +export const AzureDevOpsProjectConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmAwsOfferingVmScanners", + className: "AzureDevOpsProjectConfiguration", modelProperties: { - enabled: { - serializedName: "enabled", + autoDiscovery: { + serializedName: "autoDiscovery", type: { - name: "Boolean" + name: "String" } }, - configuration: { - serializedName: "configuration", + repositoryConfigs: { + serializedName: "repositoryConfigs", + nullable: true, type: { - name: "Composite", - className: "DefenderCspmAwsOfferingVmScannersConfiguration" + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" } + } } } } } }; -export const DefenderCspmAwsOfferingVmScannersConfiguration: coreClient.CompositeMapper = { +export const BaseResourceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmAwsOfferingVmScannersConfiguration", + className: "BaseResourceConfiguration", modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String" - } - }, - scanningMode: { - serializedName: "scanningMode", + desiredOnboardingState: { + serializedName: "desiredOnboardingState", type: { name: "String" } - }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } } } } }; -export const DefenderCspmAwsOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { +export const GitHubOwnerConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmAwsOfferingDataSensitivityDiscovery", + className: "GitHubOwnerConfiguration", modelProperties: { - enabled: { - serializedName: "enabled", + autoDiscovery: { + serializedName: "autoDiscovery", type: { - name: "Boolean" + name: "String" } }, - cloudRoleArn: { - serializedName: "cloudRoleArn", + repositoryConfigs: { + serializedName: "repositoryConfigs", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" } + } } } } } }; -export const DefenderCspmAwsOfferingDatabasesDspm: coreClient.CompositeMapper = { +export const GitLabGroupConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmAwsOfferingDatabasesDspm", + className: "GitLabGroupConfiguration", modelProperties: { - enabled: { - serializedName: "enabled", + autoDiscovery: { + serializedName: "autoDiscovery", type: { - name: "Boolean" + name: "String" } }, - cloudRoleArn: { - serializedName: "cloudRoleArn", + projectConfigs: { + serializedName: "projectConfigs", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" } + } } } } @@ -8676,23 +9946,6 @@ export const Setting: coreClient.CompositeMapper = { } }; -export const IngestionSetting: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IngestionSetting", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - export const Software: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8968,23 +10221,149 @@ export const Application: coreClient.CompositeMapper = { } }; -export const ApiCollectionResponse: coreClient.CompositeMapper = { +export const ApiCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiCollectionResponse", + className: "ApiCollection", modelProperties: { ...Resource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, displayName: { serializedName: "properties.displayName", + readOnly: true, type: { name: "String" } }, - additionalData: { - serializedName: "properties.additionalData", + discoveredVia: { + serializedName: "properties.discoveredVia", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + }, + baseUrl: { + serializedName: "properties.baseUrl", + readOnly: true, + type: { + name: "String" + } + }, + numberOfApiEndpoints: { + serializedName: "properties.numberOfApiEndpoints", + readOnly: true, + type: { + name: "Number" + } + }, + numberOfInactiveApiEndpoints: { + serializedName: "properties.numberOfInactiveApiEndpoints", + readOnly: true, + type: { + name: "Number" + } + }, + numberOfUnauthenticatedApiEndpoints: { + serializedName: "properties.numberOfUnauthenticatedApiEndpoints", + readOnly: true, + type: { + name: "Number" + } + }, + numberOfExternalApiEndpoints: { + serializedName: "properties.numberOfExternalApiEndpoints", + readOnly: true, + type: { + name: "Number" + } + }, + numberOfApiEndpointsWithSensitiveDataExposed: { + serializedName: + "properties.numberOfApiEndpointsWithSensitiveDataExposed", + readOnly: true, + type: { + name: "Number" + } + }, + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Scan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Scan", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScanProperties" + } + } + } + } +}; + +export const ScanResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScanResult", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScanResultProperties" + } + } + } + } +}; + +export const RuleResults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuleResults", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "RuleResultsProperties" + } + } + } + } +}; + +export const SecurityOperator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityOperator", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" } } } @@ -9036,84 +10415,96 @@ export const HealthReport: coreClient.CompositeMapper = { } } }, - issues: { - serializedName: "properties.issues", + affectedDefendersSubPlans: { + serializedName: "properties.affectedDefendersSubPlans", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Issue" + name: "String" } } } - } - } - } -}; - -export const Scan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Scan", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + reportAdditionalData: { + serializedName: "properties.reportAdditionalData", + readOnly: true, type: { - name: "Composite", - className: "ScanProperties" + name: "Dictionary", + value: { type: { name: "String" } } } - } - } - } -}; - -export const ScanResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScanResult", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + issues: { + serializedName: "properties.issues", type: { - name: "Composite", - className: "ScanResultProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Issue" + } + } } } } } }; -export const RuleResults: coreClient.CompositeMapper = { +export const DefenderForStorageSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleResults", + className: "DefenderForStorageSetting", modelProperties: { ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + 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: "RuleResultsProperties" + className: "OperationStatusAutoGenerated" } - } - } - } -}; - -export const SecurityOperator: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityOperator", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + }, + scanResultsEventGridTopicResourceId: { + serializedName: + "properties.malwareScanning.scanResultsEventGridTopicResourceId", + type: { + name: "String" + } + }, + operationStatusPropertiesMalwareScanningOperationStatus: { + serializedName: "properties.malwareScanning.operationStatus", type: { name: "Composite", - className: "Identity" + className: "OperationStatusAutoGenerated" + } + }, + isEnabledPropertiesMalwareScanningOnUploadIsEnabled: { + serializedName: "properties.malwareScanning.onUpload.isEnabled", + type: { + name: "Boolean" + } + }, + capGBPerMonth: { + serializedName: "properties.malwareScanning.onUpload.capGBPerMonth", + type: { + name: "Number" } } } @@ -10567,6 +11958,39 @@ export const GitlabScopeEnvironmentData: coreClient.CompositeMapper = { } }; +export const ServerVulnerabilityAssessmentsSetting: coreClient.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessmentsSetting", + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsSetting", + uberParent: "ResourceAutoGenerated", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + modelProperties: { + ...ResourceAutoGenerated.type.modelProperties, + kind: { + serializedName: "kind", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...ResourceAutoGenerated2.type.modelProperties + } + } +}; + export const CefSolutionProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11064,6 +12488,218 @@ export const OnPremiseSqlResourceDetails: coreClient.CompositeMapper = { } }; +export const AzureServersSetting: coreClient.CompositeMapper = { + serializedName: "AzureServersSetting", + type: { + name: "Composite", + className: "AzureServersSetting", + uberParent: "ServerVulnerabilityAssessmentsSetting", + polymorphicDiscriminator: + ServerVulnerabilityAssessmentsSetting.type.polymorphicDiscriminator, + modelProperties: { + ...ServerVulnerabilityAssessmentsSetting.type.modelProperties, + selectedProvider: { + serializedName: "properties.selectedProvider", + type: { + name: "String" + } + } + } + } +}; + +export const AzureDevOpsOrg: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsOrg", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AzureDevOpsOrgProperties" + } + } + } + } +}; + +export const AzureDevOpsProject: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsProject", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AzureDevOpsProjectProperties" + } + } + } + } +}; + +export const AzureDevOpsRepository: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsRepository", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AzureDevOpsRepositoryProperties" + } + } + } + } +}; + +export const DevOpsConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DevOpsConfigurationProperties" + } + } + } + } +}; + +export const GitHubOwner: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubOwner", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GitHubOwnerProperties" + } + } + } + } +}; + +export const GitHubRepository: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubRepository", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GitHubRepositoryProperties" + } + } + } + } +}; + +export const GitLabGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GitLabGroupProperties" + } + } + } + } +}; + +export const GitLabProject: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabProject", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GitLabProjectProperties" + } + } + } + } +}; + export const ActiveConnectionsNotInAllowedRange: coreClient.CompositeMapper = { serializedName: "ActiveConnectionsNotInAllowedRange", type: { @@ -11389,6 +13025,21 @@ export const GovernanceRulesOperationResultsHeaders: coreClient.CompositeMapper } }; +export const APICollectionsOnboardAzureApiManagementApiHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APICollectionsOnboardAzureApiManagementApiHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export let discriminators = { CustomAlertRule: CustomAlertRule, ResourceDetails: ResourceDetails, @@ -11440,6 +13091,7 @@ export let discriminators = { "EnvironmentData.GithubScope": GithubScopeEnvironmentData, "EnvironmentData.AzureDevOpsScope": AzureDevOpsScopeEnvironmentData, "EnvironmentData.GitlabScope": GitlabScopeEnvironmentData, + "ResourceAutoGenerated.ServerVulnerabilityAssessmentsSetting": ServerVulnerabilityAssessmentsSetting, "AwsOrganizationalData.Organization": AwsOrganizationalDataMaster, "AwsOrganizationalData.Member": AwsOrganizationalDataMember, "GcpOrganizationalData.Organization": GcpOrganizationalDataOrganization, @@ -11453,6 +13105,7 @@ export let discriminators = { "ListCustomAlertRule.AllowlistCustomAlertRule": AllowlistCustomAlertRule, "ListCustomAlertRule.DenylistCustomAlertRule": DenylistCustomAlertRule, "OnPremiseResourceDetails.OnPremiseSql": OnPremiseSqlResourceDetails, + "ServerVulnerabilityAssessmentsSetting.AzureServersSetting": AzureServersSetting, "TimeWindowCustomAlertRule.ActiveConnectionsNotInAllowedRange": ActiveConnectionsNotInAllowedRange, "TimeWindowCustomAlertRule.AmqpC2DMessagesNotInAllowedRange": AmqpC2DMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.MqttC2DMessagesNotInAllowedRange": MqttC2DMessagesNotInAllowedRange, diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index a5a30de44eca..d0281a1c38ec 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -32,16 +32,22 @@ import { JitNetworkAccessPolicy as JitNetworkAccessPolicyMapper, JitNetworkAccessPolicyInitiateRequest as JitNetworkAccessPolicyInitiateRequestMapper, ConnectorSetting as ConnectorSettingMapper, + UpdateSensitivitySettingsRequest as UpdateSensitivitySettingsRequestMapper, AlertSimulatorRequestBody as AlertSimulatorRequestBodyMapper, Setting as SettingMapper, - IngestionSetting as IngestionSettingMapper, GovernanceRule as GovernanceRuleMapper, ExecuteGovernanceRuleParams as ExecuteGovernanceRuleParamsMapper, GovernanceAssignment as GovernanceAssignmentMapper, Application as ApplicationMapper, RuleResultsInput as RuleResultsInputMapper, RulesResultsInput as RulesResultsInputMapper, - SecurityConnector as SecurityConnectorMapper + SecurityConnector as SecurityConnectorMapper, + ServerVulnerabilityAssessmentsSetting as ServerVulnerabilityAssessmentsSettingMapper, + DefenderForStorageSetting as DefenderForStorageSettingMapper, + AzureDevOpsOrg as AzureDevOpsOrgMapper, + AzureDevOpsProject as AzureDevOpsProjectMapper, + AzureDevOpsRepository as AzureDevOpsRepositoryMapper, + DevOpsConfiguration as DevOpsConfigurationMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -917,7 +923,24 @@ export const connectorSetting: OperationParameter = { mapper: ConnectorSettingMapper }; +export const sensitivitySettings: OperationParameter = { + parameterPath: "sensitivitySettings", + mapper: UpdateSensitivitySettingsRequestMapper +}; + export const apiVersion12: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-02-15-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const apiVersion13: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-01-01", @@ -945,7 +968,7 @@ export const alertSimulatorRequestBody: OperationParameter = { mapper: AlertSimulatorRequestBodyMapper }; -export const apiVersion13: OperationQueryParameter = { +export const apiVersion14: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-05-01", @@ -973,34 +996,6 @@ export const setting1: OperationParameter = { mapper: SettingMapper }; -export const apiVersion14: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-01-15-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const ingestionSettingName: OperationURLParameter = { - parameterPath: "ingestionSettingName", - mapper: { - serializedName: "ingestionSettingName", - required: true, - type: { - name: "String" - } - } -}; - -export const ingestionSetting: OperationParameter = { - parameterPath: "ingestionSetting", - mapper: IngestionSettingMapper -}; - export const apiVersion15: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -1148,6 +1143,18 @@ export const securityConnectorName: OperationURLParameter = { } }; +export const apiVersion18: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-11-15", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + export const resourceGroupName1: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -1179,10 +1186,98 @@ export const serviceName: OperationURLParameter = { } }; -export const apiVersion18: OperationQueryParameter = { +export const apiId: OperationURLParameter = { + parameterPath: "apiId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "apiId", + required: true, + type: { + name: "String" + } + } +}; + +export const scanId: OperationURLParameter = { + parameterPath: "scanId", + mapper: { + serializedName: "scanId", + required: true, + type: { + name: "String" + } + } +}; + +export const workspaceId: OperationQueryParameter = { + parameterPath: "workspaceId", + mapper: { + serializedName: "workspaceId", + required: true, + type: { + name: "String" + } + } +}; + +export const apiVersion19: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-02-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const scanResultId: OperationURLParameter = { + parameterPath: "scanResultId", + mapper: { + serializedName: "scanResultId", + required: true, + type: { + name: "String" + } + } +}; + +export const body4: OperationParameter = { + parameterPath: ["options", "body"], + mapper: RuleResultsInputMapper +}; + +export const body5: OperationParameter = { + parameterPath: ["options", "body"], + mapper: RulesResultsInputMapper +}; + +export const apiVersion20: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-03-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const securityConnector: OperationParameter = { + parameterPath: "securityConnector", + mapper: SecurityConnectorMapper +}; + +export const apiVersion21: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-11-20-preview", + defaultValue: "2023-01-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -1191,14 +1286,15 @@ export const apiVersion18: OperationQueryParameter = { } }; -export const apiCollectionId: OperationURLParameter = { - parameterPath: "apiCollectionId", +export const pricingName1: OperationURLParameter = { + parameterPath: "pricingName", mapper: { constraints: { - MaxLength: 256, - MinLength: 1 + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9_]+$"), + MaxLength: 63, + MinLength: 3 }, - serializedName: "apiCollectionId", + serializedName: "pricingName", required: true, type: { name: "String" @@ -1206,10 +1302,54 @@ export const apiCollectionId: OperationURLParameter = { } }; -export const apiVersion19: OperationQueryParameter = { +export const securityOperatorName: OperationURLParameter = { + parameterPath: "securityOperatorName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9_]+$"), + MaxLength: 63, + MinLength: 3 + }, + serializedName: "securityOperatorName", + required: true, + type: { + name: "String" + } + } +}; + +export const apiVersion22: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-02-01-preview", + defaultValue: "2023-05-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const settingKind: OperationURLParameter = { + parameterPath: "settingKind", + mapper: { + serializedName: "settingKind", + required: true, + type: { + name: "String" + } + } +}; + +export const serverVulnerabilityAssessmentsSetting: OperationParameter = { + parameterPath: "serverVulnerabilityAssessmentsSetting", + mapper: ServerVulnerabilityAssessmentsSettingMapper +}; + +export const apiVersion23: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-05-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -1250,21 +1390,22 @@ export const healthReportName: OperationURLParameter = { } }; -export const scanId: OperationURLParameter = { - parameterPath: "scanId", +export const apiVersion24: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "scanId", - required: true, + defaultValue: "2022-12-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String" } } }; -export const workspaceId: OperationQueryParameter = { - parameterPath: "workspaceId", +export const settingName3: OperationURLParameter = { + parameterPath: "settingName", mapper: { - serializedName: "workspaceId", + serializedName: "settingName", required: true, type: { name: "String" @@ -1272,10 +1413,27 @@ export const workspaceId: OperationQueryParameter = { } }; -export const scanResultId: OperationURLParameter = { - parameterPath: "scanResultId", +export const defenderForStorageSetting: OperationParameter = { + parameterPath: "defenderForStorageSetting", + mapper: DefenderForStorageSettingMapper +}; + +export const apiVersion25: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "scanResultId", + defaultValue: "2023-09-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const orgName: OperationURLParameter = { + parameterPath: "orgName", + mapper: { + serializedName: "orgName", required: true, type: { name: "String" @@ -1283,54 +1441,63 @@ export const scanResultId: OperationURLParameter = { } }; -export const body4: OperationParameter = { - parameterPath: ["options", "body"], - mapper: RuleResultsInputMapper +export const azureDevOpsOrg: OperationParameter = { + parameterPath: "azureDevOpsOrg", + mapper: AzureDevOpsOrgMapper }; -export const body5: OperationParameter = { - parameterPath: ["options", "body"], - mapper: RulesResultsInputMapper +export const projectName: OperationURLParameter = { + parameterPath: "projectName", + mapper: { + serializedName: "projectName", + required: true, + type: { + name: "String" + } + } }; -export const apiVersion20: OperationQueryParameter = { - parameterPath: "apiVersion", +export const azureDevOpsProject: OperationParameter = { + parameterPath: "azureDevOpsProject", + mapper: AzureDevOpsProjectMapper +}; + +export const repoName: OperationURLParameter = { + parameterPath: "repoName", mapper: { - defaultValue: "2023-03-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "repoName", + required: true, type: { name: "String" } } }; -export const securityConnector: OperationParameter = { - parameterPath: "securityConnector", - mapper: SecurityConnectorMapper +export const azureDevOpsRepository: OperationParameter = { + parameterPath: "azureDevOpsRepository", + mapper: AzureDevOpsRepositoryMapper }; -export const apiVersion21: OperationQueryParameter = { - parameterPath: "apiVersion", +export const devOpsConfiguration: OperationParameter = { + parameterPath: "devOpsConfiguration", + mapper: DevOpsConfigurationMapper +}; + +export const ownerName: OperationURLParameter = { + parameterPath: "ownerName", mapper: { - defaultValue: "2023-01-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "ownerName", + required: true, type: { name: "String" } } }; -export const pricingName1: OperationURLParameter = { - parameterPath: "pricingName", +export const groupFQName: OperationURLParameter = { + parameterPath: "groupFQName", mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9_]+$"), - MaxLength: 63, - MinLength: 3 - }, - serializedName: "pricingName", + serializedName: "groupFQName", required: true, type: { name: "String" @@ -1338,15 +1505,10 @@ export const pricingName1: OperationURLParameter = { } }; -export const securityOperatorName: OperationURLParameter = { - parameterPath: "securityOperatorName", +export const operationResultId: OperationURLParameter = { + parameterPath: "operationResultId", mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9_]+$"), - MaxLength: 63, - MinLength: 3 - }, - serializedName: "securityOperatorName", + serializedName: "operationResultId", required: true, type: { name: "String" diff --git a/sdk/security/arm-security/src/operations/aPICollectionOffboarding.ts b/sdk/security/arm-security/src/operations/aPICollectionOffboarding.ts deleted file mode 100644 index 57611f1a24ea..000000000000 --- a/sdk/security/arm-security/src/operations/aPICollectionOffboarding.ts +++ /dev/null @@ -1,73 +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 { APICollectionOffboarding } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenter } from "../securityCenter"; -import { APICollectionOffboardingDeleteOptionalParams } from "../models"; - -/** Class containing APICollectionOffboarding operations. */ -export class APICollectionOffboardingImpl implements APICollectionOffboarding { - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class APICollectionOffboarding class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Offboard an Azure API Management API from Defender for APIs. The system will stop monitoring the - * operations within the Azure API Management API for intrusive behaviors. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. - * @param apiCollectionId A string representing the apiCollections resource within the - * Microsoft.Security provider namespace. This string matches the Azure API Management API name. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - serviceName: string, - apiCollectionId: string, - options?: APICollectionOffboardingDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiCollectionId, options }, - deleteOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections/{apiCollectionId}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion18], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName1, - Parameters.serviceName, - Parameters.apiCollectionId - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/security/arm-security/src/operations/aPICollectionOnboarding.ts b/sdk/security/arm-security/src/operations/aPICollectionOnboarding.ts deleted file mode 100644 index 17794b34b23b..000000000000 --- a/sdk/security/arm-security/src/operations/aPICollectionOnboarding.ts +++ /dev/null @@ -1,78 +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 { APICollectionOnboarding } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenter } from "../securityCenter"; -import { - APICollectionOnboardingCreateOptionalParams, - APICollectionOnboardingCreateResponse -} from "../models"; - -/** Class containing APICollectionOnboarding operations. */ -export class APICollectionOnboardingImpl implements APICollectionOnboarding { - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class APICollectionOnboarding class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Onboard an Azure API Management API to Defender for APIs. The system will start monitoring the - * operations within the Azure Management API for intrusive behaviors and provide alerts for attacks - * that have been detected. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. - * @param apiCollectionId A string representing the apiCollections resource within the - * Microsoft.Security provider namespace. This string matches the Azure API Management API name. - * @param options The options parameters. - */ - create( - resourceGroupName: string, - serviceName: string, - apiCollectionId: string, - options?: APICollectionOnboardingCreateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiCollectionId, options }, - createOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections/{apiCollectionId}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ApiCollectionResponse - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion18], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName1, - Parameters.serviceName, - Parameters.apiCollectionId - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/security/arm-security/src/operations/aPICollections.ts b/sdk/security/arm-security/src/operations/aPICollections.ts new file mode 100644 index 000000000000..a93b8a59a35c --- /dev/null +++ b/sdk/security/arm-security/src/operations/aPICollections.ts @@ -0,0 +1,715 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { APICollections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApiCollection, + APICollectionsListBySubscriptionNextOptionalParams, + APICollectionsListBySubscriptionOptionalParams, + APICollectionsListBySubscriptionResponse, + APICollectionsListByResourceGroupNextOptionalParams, + APICollectionsListByResourceGroupOptionalParams, + APICollectionsListByResourceGroupResponse, + APICollectionsListByAzureApiManagementServiceNextOptionalParams, + APICollectionsListByAzureApiManagementServiceOptionalParams, + APICollectionsListByAzureApiManagementServiceResponse, + APICollectionsGetByAzureApiManagementServiceOptionalParams, + APICollectionsGetByAzureApiManagementServiceResponse, + APICollectionsOnboardAzureApiManagementApiOptionalParams, + APICollectionsOnboardAzureApiManagementApiResponse, + APICollectionsOffboardAzureApiManagementApiOptionalParams, + APICollectionsListBySubscriptionNextResponse, + APICollectionsListByResourceGroupNextResponse, + APICollectionsListByAzureApiManagementServiceNextResponse +} from "../models"; + +/// +/** Class containing APICollections operations. */ +export class APICollectionsImpl implements APICollections { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class APICollections class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender + * for APIs. + * @param options The options parameters. + */ + public listBySubscription( + options?: APICollectionsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: APICollectionsListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: APICollectionsListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: APICollectionsListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Gets a list of API collections within a resource group that have been onboarded to Microsoft + * Defender for APIs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: APICollectionsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: APICollectionsListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: APICollectionsListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: APICollectionsListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs. If + * an Azure API Management API is onboarded to Microsoft Defender for APIs, the system will monitor the + * operations within the Azure API Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByAzureApiManagementService( + resourceGroupName: string, + serviceName: string, + options?: APICollectionsListByAzureApiManagementServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByAzureApiManagementServicePagingAll( + resourceGroupName, + serviceName, + 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.listByAzureApiManagementServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByAzureApiManagementServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: APICollectionsListByAzureApiManagementServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: APICollectionsListByAzureApiManagementServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAzureApiManagementService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAzureApiManagementServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAzureApiManagementServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: APICollectionsListByAzureApiManagementServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByAzureApiManagementServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender + * for APIs. + * @param options The options parameters. + */ + private _listBySubscription( + options?: APICollectionsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Gets a list of API collections within a resource group that have been onboarded to Microsoft + * Defender for APIs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: APICollectionsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs. If + * an Azure API Management API is onboarded to Microsoft Defender for APIs, the system will monitor the + * operations within the Azure API Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByAzureApiManagementService( + resourceGroupName: string, + serviceName: string, + options?: APICollectionsListByAzureApiManagementServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByAzureApiManagementServiceOperationSpec + ); + } + + /** + * Gets an Azure API Management API if it has been onboarded to Microsoft Defender for APIs. If an + * Azure API Management API is onboarded to Microsoft Defender for APIs, the system will monitor the + * operations within the Azure API Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getByAzureApiManagementService( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: APICollectionsGetByAzureApiManagementServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + getByAzureApiManagementServiceOperationSpec + ); + } + + /** + * Onboard an Azure API Management API to Microsoft Defender for APIs. The system will start monitoring + * the operations within the Azure Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + async beginOnboardAzureApiManagementApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: APICollectionsOnboardAzureApiManagementApiOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + APICollectionsOnboardAzureApiManagementApiResponse + > + > { + 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, serviceName, apiId, options }, + spec: onboardAzureApiManagementApiOperationSpec + }); + const poller = await createHttpPoller< + APICollectionsOnboardAzureApiManagementApiResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Onboard an Azure API Management API to Microsoft Defender for APIs. The system will start monitoring + * the operations within the Azure Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + async beginOnboardAzureApiManagementApiAndWait( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: APICollectionsOnboardAzureApiManagementApiOptionalParams + ): Promise { + const poller = await this.beginOnboardAzureApiManagementApi( + resourceGroupName, + serviceName, + apiId, + options + ); + return poller.pollUntilDone(); + } + + /** + * Offboard an Azure API Management API from Microsoft Defender for APIs. The system will stop + * monitoring the operations within the Azure API Management API for intrusive behaviors. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + offboardAzureApiManagementApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: APICollectionsOffboardAzureApiManagementApiOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + offboardAzureApiManagementApiOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: APICollectionsListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: APICollectionsListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + + /** + * ListByAzureApiManagementServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the + * ListByAzureApiManagementService method. + * @param options The options parameters. + */ + private _listByAzureApiManagementServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: APICollectionsListByAzureApiManagementServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByAzureApiManagementServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/apiCollections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollectionList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion18], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/apiCollections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollectionList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion18], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByAzureApiManagementServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollectionList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion18], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName1, + Parameters.serviceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getByAzureApiManagementServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion18], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName1, + Parameters.serviceName, + Parameters.apiId + ], + headerParameters: [Parameters.accept], + serializer +}; +const onboardAzureApiManagementApiOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections/{apiId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + 201: { + bodyMapper: Mappers.ApiCollection + }, + 202: { + bodyMapper: Mappers.ApiCollection + }, + 204: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion18], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName1, + Parameters.serviceName, + Parameters.apiId + ], + headerParameters: [Parameters.accept], + serializer +}; +const offboardAzureApiManagementApiOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections/{apiId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion18], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName1, + Parameters.serviceName, + Parameters.apiId + ], + headerParameters: [Parameters.accept], + 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: { + 200: { + bodyMapper: Mappers.ApiCollectionList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName1 + ], + 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/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts index 9d1230722faf..4b340a33f0a9 100644 --- a/sdk/security/arm-security/src/operations/alerts.ts +++ b/sdk/security/arm-security/src/operations/alerts.ts @@ -780,7 +780,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -797,7 +797,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -818,7 +818,7 @@ const listSubscriptionLevelByRegionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -839,7 +839,7 @@ const listResourceGroupLevelByRegionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -861,7 +861,7 @@ const getSubscriptionLevelOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -883,7 +883,7 @@ const getResourceGroupLevelOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -904,7 +904,7 @@ const updateSubscriptionLevelStateToDismissOperationSpec: coreClient.OperationSp bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -924,7 +924,7 @@ const updateSubscriptionLevelStateToResolveOperationSpec: coreClient.OperationSp bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -944,7 +944,7 @@ const updateSubscriptionLevelStateToActivateOperationSpec: coreClient.OperationS bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -964,7 +964,7 @@ const updateSubscriptionLevelStateToInProgressOperationSpec: coreClient.Operatio bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -984,7 +984,7 @@ const updateResourceGroupLevelStateToResolveOperationSpec: coreClient.OperationS bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1005,7 +1005,7 @@ const updateResourceGroupLevelStateToDismissOperationSpec: coreClient.OperationS bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1026,7 +1026,7 @@ const updateResourceGroupLevelStateToActivateOperationSpec: coreClient.Operation bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1047,7 +1047,7 @@ const updateResourceGroupLevelStateToInProgressOperationSpec: coreClient.Operati bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1072,7 +1072,7 @@ const simulateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.alertSimulatorRequestBody, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts new file mode 100644 index 000000000000..fe9060260803 --- /dev/null +++ b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts @@ -0,0 +1,580 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AzureDevOpsOrgs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + AzureDevOpsOrg, + AzureDevOpsOrgsListNextOptionalParams, + AzureDevOpsOrgsListOptionalParams, + AzureDevOpsOrgsListResponse, + AzureDevOpsOrgsListAvailableOptionalParams, + AzureDevOpsOrgsListAvailableResponse, + AzureDevOpsOrgsGetOptionalParams, + AzureDevOpsOrgsGetResponse, + AzureDevOpsOrgsCreateOrUpdateOptionalParams, + AzureDevOpsOrgsCreateOrUpdateResponse, + AzureDevOpsOrgsUpdateOptionalParams, + AzureDevOpsOrgsUpdateResponse, + AzureDevOpsOrgsListNextResponse +} from "../models"; + +/// +/** Class containing AzureDevOpsOrgs operations. */ +export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class AzureDevOpsOrgs class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of Azure DevOps organizations onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AzureDevOpsOrgsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of all Azure DevOps organizations accessible by the user token consumed by the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListAvailableOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listAvailableOperationSpec + ); + } + + /** + * Returns a list of Azure DevOps organizations onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored Azure DevOps organization resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsOrgsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, orgName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsOrgsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + azureDevOpsOrg, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsOrgsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + orgName, + azureDevOpsOrg, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsOrgsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + azureDevOpsOrg, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsOrgsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + orgName, + azureDevOpsOrg, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: AzureDevOpsOrgsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAvailableOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/listAvailableAzureDevOpsOrgs", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrgListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrgListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 201: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 202: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 204: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.azureDevOpsOrg, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 201: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 202: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 204: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.azureDevOpsOrg, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrgListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts new file mode 100644 index 000000000000..dfe41238f9c2 --- /dev/null +++ b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts @@ -0,0 +1,576 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AzureDevOpsProjects } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + AzureDevOpsProject, + AzureDevOpsProjectsListNextOptionalParams, + AzureDevOpsProjectsListOptionalParams, + AzureDevOpsProjectsListResponse, + AzureDevOpsProjectsGetOptionalParams, + AzureDevOpsProjectsGetResponse, + AzureDevOpsProjectsCreateOrUpdateOptionalParams, + AzureDevOpsProjectsCreateOrUpdateResponse, + AzureDevOpsProjectsUpdateOptionalParams, + AzureDevOpsProjectsUpdateResponse, + AzureDevOpsProjectsListNextResponse +} from "../models"; + +/// +/** Class containing AzureDevOpsProjects operations. */ +export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class AzureDevOpsProjects class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of Azure DevOps projects onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + orgName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + orgName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AzureDevOpsProjectsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + orgName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + orgName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + orgName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of Azure DevOps projects onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, orgName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsProjectsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsProjectsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + azureDevOpsProject, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsProjectsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + azureDevOpsProject, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsProjectsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + azureDevOpsProject, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsProjectsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + azureDevOpsProject, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + nextLink: string, + options?: AzureDevOpsProjectsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, orgName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProjectListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProject + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 201: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 202: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 204: { + bodyMapper: Mappers.AzureDevOpsProject + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.azureDevOpsProject, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 201: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 202: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 204: { + bodyMapper: Mappers.AzureDevOpsProject + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.azureDevOpsProject, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProjectListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts new file mode 100644 index 000000000000..88d59381aec6 --- /dev/null +++ b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts @@ -0,0 +1,622 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AzureDevOpsRepos } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + AzureDevOpsRepository, + AzureDevOpsReposListNextOptionalParams, + AzureDevOpsReposListOptionalParams, + AzureDevOpsReposListResponse, + AzureDevOpsReposGetOptionalParams, + AzureDevOpsReposGetResponse, + AzureDevOpsReposCreateOrUpdateOptionalParams, + AzureDevOpsReposCreateOrUpdateResponse, + AzureDevOpsReposUpdateOptionalParams, + AzureDevOpsReposUpdateResponse, + AzureDevOpsReposListNextResponse +} from "../models"; + +/// +/** Class containing AzureDevOpsRepos operations. */ +export class AzureDevOpsReposImpl implements AzureDevOpsRepos { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class AzureDevOpsRepos class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of Azure DevOps repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AzureDevOpsReposListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of Azure DevOps repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + }, + listOperationSpec + ); + } + + /** + * Returns a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + options?: AzureDevOpsReposGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsReposCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + azureDevOpsRepository, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsReposCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + azureDevOpsRepository, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsReposUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + azureDevOpsRepository, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsReposUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + azureDevOpsRepository, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + nextLink: string, + options?: AzureDevOpsReposListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepositoryListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName, + Parameters.repoName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 201: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 202: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 204: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.azureDevOpsRepository, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName, + Parameters.repoName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 201: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 202: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 204: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.azureDevOpsRepository, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName, + Parameters.repoName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepositoryListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/defenderForStorage.ts b/sdk/security/arm-security/src/operations/defenderForStorage.ts new file mode 100644 index 000000000000..d75df56ebb1b --- /dev/null +++ b/sdk/security/arm-security/src/operations/defenderForStorage.ts @@ -0,0 +1,120 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { DefenderForStorage } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SettingNameAutoGenerated, + DefenderForStorageGetOptionalParams, + DefenderForStorageGetResponse, + DefenderForStorageSetting, + DefenderForStorageCreateOptionalParams, + DefenderForStorageCreateResponse +} from "../models"; + +/** Class containing DefenderForStorage operations. */ +export class DefenderForStorageImpl implements DefenderForStorage { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class DefenderForStorage class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets the Defender for Storage settings for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param options The options parameters. + */ + get( + resourceId: string, + settingName: SettingNameAutoGenerated, + options?: DefenderForStorageGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates the Defender for Storage settings on a specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param defenderForStorageSetting Defender for Storage Settings + * @param options The options parameters. + */ + create( + resourceId: string, + settingName: SettingNameAutoGenerated, + defenderForStorageSetting: DefenderForStorageSetting, + options?: DefenderForStorageCreateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, defenderForStorageSetting, options }, + createOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DefenderForStorageSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion24], + urlParameters: [ + Parameters.$host, + Parameters.resourceId, + Parameters.settingName3 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DefenderForStorageSetting + }, + 201: { + bodyMapper: Mappers.DefenderForStorageSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.defenderForStorageSetting, + queryParameters: [Parameters.apiVersion24], + urlParameters: [ + Parameters.$host, + Parameters.resourceId, + Parameters.settingName3 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/security/arm-security/src/operations/devOpsConfigurations.ts b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts new file mode 100644 index 000000000000..35991570bdd7 --- /dev/null +++ b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts @@ -0,0 +1,627 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DevOpsConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DevOpsConfiguration, + DevOpsConfigurationsListNextOptionalParams, + DevOpsConfigurationsListOptionalParams, + DevOpsConfigurationsListResponse, + DevOpsConfigurationsGetOptionalParams, + DevOpsConfigurationsGetResponse, + DevOpsConfigurationsCreateOrUpdateOptionalParams, + DevOpsConfigurationsCreateOrUpdateResponse, + DevOpsConfigurationsUpdateOptionalParams, + DevOpsConfigurationsUpdateResponse, + DevOpsConfigurationsDeleteOptionalParams, + DevOpsConfigurationsListNextResponse +} from "../models"; + +/// +/** Class containing DevOpsConfigurations operations. */ +export class DevOpsConfigurationsImpl implements DevOpsConfigurations { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class DevOpsConfigurations class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * List DevOps Configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DevOpsConfigurationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options + )) { + yield* page; + } + } + + /** + * List DevOps Configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec + ); + } + + /** + * Gets a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DevOpsConfigurationsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + devOpsConfiguration, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + DevOpsConfigurationsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + devOpsConfiguration, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DevOpsConfigurationsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + devOpsConfiguration, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DevOpsConfigurationsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + devOpsConfiguration, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a DevOps Connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, securityConnectorName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a DevOps Connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + securityConnectorName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: DevOpsConfigurationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfigurationListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 201: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 202: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 204: { + bodyMapper: Mappers.DevOpsConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.devOpsConfiguration, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 201: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 202: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 204: { + bodyMapper: Mappers.DevOpsConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.devOpsConfiguration, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfigurationListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/devOpsOperationResults.ts b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts new file mode 100644 index 000000000000..c919f7da7f2f --- /dev/null +++ b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { DevOpsOperationResults } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + DevOpsOperationResultsGetOptionalParams, + DevOpsOperationResultsGetResponse +} from "../models"; + +/** Class containing DevOpsOperationResults operations. */ +export class DevOpsOperationResultsImpl implements DevOpsOperationResults { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class DevOpsOperationResults class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get devops long running operation result. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param operationResultId The operation result Id. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + operationResultId: string, + options?: DevOpsOperationResultsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, operationResultId, options }, + getOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/operationResults/{operationResultId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.operationResultId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/gitHubOwners.ts b/sdk/security/arm-security/src/operations/gitHubOwners.ts new file mode 100644 index 000000000000..d4cba78c20b1 --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitHubOwners.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GitHubOwners } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitHubOwner, + GitHubOwnersListNextOptionalParams, + GitHubOwnersListOptionalParams, + GitHubOwnersListResponse, + GitHubOwnersListAvailableOptionalParams, + GitHubOwnersListAvailableResponse, + GitHubOwnersGetOptionalParams, + GitHubOwnersGetResponse, + GitHubOwnersListNextResponse +} from "../models"; + +/// +/** Class containing GitHubOwners operations. */ +export class GitHubOwnersImpl implements GitHubOwners { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitHubOwners class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of GitHub owners onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GitHubOwnersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of all GitHub owners accessible by the user token consumed by the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListAvailableOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listAvailableOperationSpec + ); + } + + /** + * Returns a list of GitHub owners onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored GitHub owner. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubOwnersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, ownerName, options }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: GitHubOwnersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAvailableOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/listAvailableGitHubOwners", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GitHubOwnerListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubOwnerListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners/{ownerName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubOwner + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.ownerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubOwnerListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/aPICollection.ts b/sdk/security/arm-security/src/operations/gitHubRepos.ts similarity index 53% rename from sdk/security/arm-security/src/operations/aPICollection.ts rename to sdk/security/arm-security/src/operations/gitHubRepos.ts index 297e9bdc923f..61d2b5b53d80 100644 --- a/sdk/security/arm-security/src/operations/aPICollection.ts +++ b/sdk/security/arm-security/src/operations/gitHubRepos.ts @@ -8,28 +8,28 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "../pagingHelper"; -import { APICollection } from "../operationsInterfaces"; +import { GitHubRepos } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SecurityCenter } from "../securityCenter"; import { - ApiCollectionResponse, - APICollectionListNextOptionalParams, - APICollectionListOptionalParams, - APICollectionListResponse, - APICollectionGetOptionalParams, - APICollectionGetResponse, - APICollectionListNextResponse + GitHubRepository, + GitHubReposListNextOptionalParams, + GitHubReposListOptionalParams, + GitHubReposListResponse, + GitHubReposGetOptionalParams, + GitHubReposGetResponse, + GitHubReposListNextResponse } from "../models"; /// -/** Class containing APICollection operations. */ -export class APICollectionImpl implements APICollection { +/** Class containing GitHubRepos operations. */ +export class GitHubReposImpl implements GitHubRepos { private readonly client: SecurityCenter; /** - * Initialize a new instance of the class APICollection class. + * Initialize a new instance of the class GitHubRepos class. * @param client Reference to the service client */ constructor(client: SecurityCenter) { @@ -37,20 +37,24 @@ export class APICollectionImpl implements APICollection { } /** - * Gets a list of Azure API Management APIs that have been onboarded to Defender for APIs. If an Azure - * API Management API is onboarded to Defender for APIs, the system will monitor the operations within - * the Azure API Management API for intrusive behaviors and provide alerts for attacks that have been - * detected. + * Returns a list of GitHub repositories onboarded to the connector. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. * @param options The options parameters. */ public list( resourceGroupName: string, - serviceName: string, - options?: APICollectionListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, serviceName, options); + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + ownerName, + options + ); return { next() { return iter.next(); @@ -64,7 +68,8 @@ export class APICollectionImpl implements APICollection { } return this.listPagingPage( resourceGroupName, - serviceName, + securityConnectorName, + ownerName, options, settings ); @@ -74,14 +79,20 @@ export class APICollectionImpl implements APICollection { private async *listPagingPage( resourceGroupName: string, - serviceName: string, - options?: APICollectionListOptionalParams, + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: APICollectionListResponse; + ): AsyncIterableIterator { + let result: GitHubReposListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceGroupName, serviceName, options); + result = await this._list( + resourceGroupName, + securityConnectorName, + ownerName, + options + ); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -90,7 +101,8 @@ export class APICollectionImpl implements APICollection { while (continuationToken) { result = await this._listNext( resourceGroupName, - serviceName, + securityConnectorName, + ownerName, continuationToken, options ); @@ -103,12 +115,14 @@ export class APICollectionImpl implements APICollection { private async *listPagingAll( resourceGroupName: string, - serviceName: string, - options?: APICollectionListOptionalParams - ): AsyncIterableIterator { + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams + ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, - serviceName, + securityConnectorName, + ownerName, options )) { yield* page; @@ -116,44 +130,47 @@ export class APICollectionImpl implements APICollection { } /** - * Gets a list of Azure API Management APIs that have been onboarded to Defender for APIs. If an Azure - * API Management API is onboarded to Defender for APIs, the system will monitor the operations within - * the Azure API Management API for intrusive behaviors and provide alerts for attacks that have been - * detected. + * Returns a list of GitHub repositories onboarded to the connector. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. * @param options The options parameters. */ private _list( resourceGroupName: string, - serviceName: string, - options?: APICollectionListOptionalParams - ): Promise { + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, options }, + { resourceGroupName, securityConnectorName, ownerName, options }, listOperationSpec ); } /** - * Gets an Azure API Management API if it has been onboarded to Defender for APIs. If an Azure API - * Management API is onboarded to Defender for APIs, the system will monitor the operations within the - * Azure API Management API for intrusive behaviors and provide alerts for attacks that have been - * detected. + * Returns a monitored GitHub repository. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. - * @param apiCollectionId A string representing the apiCollections resource within the - * Microsoft.Security provider namespace. This string matches the Azure API Management API name. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param repoName The repository name. * @param options The options parameters. */ get( resourceGroupName: string, - serviceName: string, - apiCollectionId: string, - options?: APICollectionGetOptionalParams - ): Promise { + securityConnectorName: string, + ownerName: string, + repoName: string, + options?: GitHubReposGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiCollectionId, options }, + { + resourceGroupName, + securityConnectorName, + ownerName, + repoName, + options + }, getOperationSpec ); } @@ -161,18 +178,26 @@ export class APICollectionImpl implements APICollection { /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext( resourceGroupName: string, - serviceName: string, + securityConnectorName: string, + ownerName: string, nextLink: string, - options?: APICollectionListNextOptionalParams - ): Promise { + options?: GitHubReposListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, nextLink, options }, + { + resourceGroupName, + securityConnectorName, + ownerName, + nextLink, + options + }, listNextOperationSpec ); } @@ -182,45 +207,47 @@ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners/{ownerName}/repos", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollectionResponseList + bodyMapper: Mappers.GitHubRepositoryListResponse }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, - queryParameters: [Parameters.apiVersion18], + queryParameters: [Parameters.apiVersion25], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.securityConnectorName, Parameters.resourceGroupName1, - Parameters.serviceName + Parameters.ownerName ], headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/providers/Microsoft.Security/apiCollections/{apiCollectionId}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners/{ownerName}/repos/{repoName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollectionResponse + bodyMapper: Mappers.GitHubRepository }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, - queryParameters: [Parameters.apiVersion18], + queryParameters: [Parameters.apiVersion25], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.securityConnectorName, Parameters.resourceGroupName1, - Parameters.serviceName, - Parameters.apiCollectionId + Parameters.repoName, + Parameters.ownerName ], headerParameters: [Parameters.accept], serializer @@ -230,18 +257,19 @@ const listNextOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollectionResponseList + bodyMapper: Mappers.GitHubRepositoryListResponse }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorResponseAutoGenerated } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, + Parameters.securityConnectorName, Parameters.resourceGroupName1, - Parameters.serviceName + Parameters.ownerName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/security/arm-security/src/operations/gitLabGroups.ts b/sdk/security/arm-security/src/operations/gitLabGroups.ts new file mode 100644 index 000000000000..ca0cb9395231 --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitLabGroups.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GitLabGroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitLabGroup, + GitLabGroupsListNextOptionalParams, + GitLabGroupsListOptionalParams, + GitLabGroupsListResponse, + GitLabGroupsListAvailableOptionalParams, + GitLabGroupsListAvailableResponse, + GitLabGroupsGetOptionalParams, + GitLabGroupsGetResponse, + GitLabGroupsListNextResponse +} from "../models"; + +/// +/** Class containing GitLabGroups operations. */ +export class GitLabGroupsImpl implements GitLabGroups { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitLabGroups class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of GitLab groups onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GitLabGroupsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of all GitLab groups accessible by the user token consumed by the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListAvailableOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listAvailableOperationSpec + ); + } + + /** + * Returns a list of GitLab groups onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored GitLab Group resource for a given fully-qualified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, groupFQName, options }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: GitLabGroupsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAvailableOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/listAvailableGitLabGroups", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroupListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroupListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups/{groupFQName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroup + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroupListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/gitLabProjects.ts b/sdk/security/arm-security/src/operations/gitLabProjects.ts new file mode 100644 index 000000000000..e803af866558 --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitLabProjects.ts @@ -0,0 +1,278 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GitLabProjects } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitLabProject, + GitLabProjectsListNextOptionalParams, + GitLabProjectsListOptionalParams, + GitLabProjectsListResponse, + GitLabProjectsGetOptionalParams, + GitLabProjectsGetResponse, + GitLabProjectsListNextResponse +} from "../models"; + +/// +/** Class containing GitLabProjects operations. */ +export class GitLabProjectsImpl implements GitLabProjects { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitLabProjects class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets a list of GitLab projects that are directly owned by given group and onboarded to the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + groupFQName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + groupFQName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GitLabProjectsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + groupFQName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + groupFQName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + groupFQName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of GitLab projects that are directly owned by given group and onboarded to the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, groupFQName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored GitLab Project resource for a given fully-qualified group name and project name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param projectName The project name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + projectName: string, + options?: GitLabProjectsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + groupFQName, + projectName, + options + }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + nextLink: string, + options?: GitLabProjectsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + groupFQName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups/{groupFQName}/projects", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabProjectListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups/{groupFQName}/projects/{projectName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabProject + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.projectName, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabProjectListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/gitLabSubgroups.ts b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts new file mode 100644 index 000000000000..509fdcdce4a9 --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { GitLabSubgroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitLabSubgroupsListOptionalParams, + GitLabSubgroupsListResponse +} from "../models"; + +/** Class containing GitLabSubgroups operations. */ +export class GitLabSubgroupsImpl implements GitLabSubgroups { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitLabSubgroups class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets nested subgroups of given GitLab Group which are onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabSubgroupsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, groupFQName, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups/{groupFQName}/listSubgroups", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroupListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/healthReportOperations.ts b/sdk/security/arm-security/src/operations/healthReportOperations.ts deleted file mode 100644 index ed8525397864..000000000000 --- a/sdk/security/arm-security/src/operations/healthReportOperations.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { HealthReportOperations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenter } from "../securityCenter"; -import { - HealthReportGetOptionalParams, - HealthReportGetResponse -} from "../models"; - -/** Class containing HealthReportOperations operations. */ -export class HealthReportOperationsImpl implements HealthReportOperations { - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class HealthReportOperations class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Get health report of resource - * @param resourceId The identifier of the resource. - * @param healthReportName The health report Key - Unique key for the health report type - * @param options The options parameters. - */ - get( - resourceId: string, - healthReportName: string, - options?: HealthReportGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceId, healthReportName, options }, - getOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/{resourceId}/providers/Microsoft.Security/healthReports/{healthReportName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.HealthReport - }, - default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated - } - }, - queryParameters: [Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.healthReportName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/security/arm-security/src/operations/healthReports.ts b/sdk/security/arm-security/src/operations/healthReports.ts index 5d2a17a24404..931eca3e0f40 100644 --- a/sdk/security/arm-security/src/operations/healthReports.ts +++ b/sdk/security/arm-security/src/operations/healthReports.ts @@ -18,6 +18,8 @@ import { HealthReportsListNextOptionalParams, HealthReportsListOptionalParams, HealthReportsListResponse, + HealthReportsGetOptionalParams, + HealthReportsGetResponse, HealthReportsListNextResponse } from "../models"; @@ -111,6 +113,23 @@ export class HealthReportsImpl implements HealthReports { ); } + /** + * Get health report of resource + * @param resourceId The identifier of the resource. + * @param healthReportName The health report Key - Unique key for the health report type + * @param options The options parameters. + */ + get( + resourceId: string, + healthReportName: string, + options?: HealthReportsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceId, healthReportName, options }, + getOperationSpec + ); + } + /** * ListNext * @param scope The scope at which the operation is performed. @@ -139,14 +158,35 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.HealthReportsList }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion19], + queryParameters: [Parameters.apiVersion23], urlParameters: [Parameters.$host, Parameters.scope2], headerParameters: [Parameters.accept], serializer }; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/{resourceId}/providers/Microsoft.Security/healthReports/{healthReportName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.HealthReport + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion23], + urlParameters: [ + Parameters.$host, + Parameters.resourceId, + Parameters.healthReportName + ], + headerParameters: [Parameters.accept], + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -155,7 +195,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.HealthReportsList }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated + bodyMapper: Mappers.ErrorResponse } }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope2], diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 34ac4c6ae693..ae6b80c22cc5 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -47,9 +47,9 @@ export * from "./secureScoreControls"; export * from "./secureScoreControlDefinitions"; export * from "./securitySolutions"; export * from "./connectors"; +export * from "./sensitivitySettings"; export * from "./alerts"; export * from "./settings"; -export * from "./ingestionSettings"; export * from "./softwareInventories"; export * from "./governanceRules"; export * from "./governanceAssignments"; @@ -57,13 +57,22 @@ export * from "./applications"; export * from "./applicationOperations"; export * from "./securityConnectorApplications"; export * from "./securityConnectorApplication"; -export * from "./aPICollection"; -export * from "./aPICollectionOnboarding"; -export * from "./aPICollectionOffboarding"; -export * from "./healthReports"; -export * from "./healthReportOperations"; +export * from "./aPICollections"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentScanResults"; export * from "./sqlVulnerabilityAssessmentBaselineRules"; export * from "./securityConnectors"; export * from "./securityOperators"; +export * from "./serverVulnerabilityAssessmentsSettings"; +export * from "./healthReports"; +export * from "./defenderForStorage"; +export * from "./azureDevOpsOrgs"; +export * from "./azureDevOpsProjects"; +export * from "./azureDevOpsRepos"; +export * from "./devOpsConfigurations"; +export * from "./gitHubOwners"; +export * from "./gitHubRepos"; +export * from "./gitLabGroups"; +export * from "./gitLabSubgroups"; +export * from "./gitLabProjects"; +export * from "./devOpsOperationResults"; diff --git a/sdk/security/arm-security/src/operations/ingestionSettings.ts b/sdk/security/arm-security/src/operations/ingestionSettings.ts deleted file mode 100644 index ec5e8d1b26c4..000000000000 --- a/sdk/security/arm-security/src/operations/ingestionSettings.ts +++ /dev/null @@ -1,351 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { IngestionSettings } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenter } from "../securityCenter"; -import { - IngestionSetting, - IngestionSettingsListNextOptionalParams, - IngestionSettingsListOptionalParams, - IngestionSettingsListResponse, - IngestionSettingsGetOptionalParams, - IngestionSettingsGetResponse, - IngestionSettingsCreateOptionalParams, - IngestionSettingsCreateResponse, - IngestionSettingsDeleteOptionalParams, - IngestionSettingsListTokensOptionalParams, - IngestionSettingsListTokensResponse, - IngestionSettingsListConnectionStringsOptionalParams, - IngestionSettingsListConnectionStringsResponse, - IngestionSettingsListNextResponse -} from "../models"; - -/// -/** Class containing IngestionSettings operations. */ -export class IngestionSettingsImpl implements IngestionSettings { - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class IngestionSettings class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Settings for ingesting security data and logs to correlate with resources associated with the - * subscription. - * @param options The options parameters. - */ - public list( - options?: IngestionSettingsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(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(options, settings); - } - }; - } - - private async *listPagingPage( - options?: IngestionSettingsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: IngestionSettingsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: IngestionSettingsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * Settings for ingesting security data and logs to correlate with resources associated with the - * subscription. - * @param options The options parameters. - */ - private _list( - options?: IngestionSettingsListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * Settings for ingesting security data and logs to correlate with resources associated with the - * subscription. - * @param ingestionSettingName Name of the ingestion setting - * @param options The options parameters. - */ - get( - ingestionSettingName: string, - options?: IngestionSettingsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { ingestionSettingName, options }, - getOperationSpec - ); - } - - /** - * Create setting for ingesting security data and logs to correlate with resources associated with the - * subscription. - * @param ingestionSettingName Name of the ingestion setting - * @param ingestionSetting Ingestion setting object - * @param options The options parameters. - */ - create( - ingestionSettingName: string, - ingestionSetting: IngestionSetting, - options?: IngestionSettingsCreateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { ingestionSettingName, ingestionSetting, options }, - createOperationSpec - ); - } - - /** - * Deletes the ingestion settings for this subscription. - * @param ingestionSettingName Name of the ingestion setting - * @param options The options parameters. - */ - delete( - ingestionSettingName: string, - options?: IngestionSettingsDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { ingestionSettingName, options }, - deleteOperationSpec - ); - } - - /** - * Returns the token that is used for correlating ingested telemetry with the resources in the - * subscription. - * @param ingestionSettingName Name of the ingestion setting - * @param options The options parameters. - */ - listTokens( - ingestionSettingName: string, - options?: IngestionSettingsListTokensOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { ingestionSettingName, options }, - listTokensOperationSpec - ); - } - - /** - * Connection strings for ingesting security scan logs and data. - * @param ingestionSettingName Name of the ingestion setting - * @param options The options parameters. - */ - listConnectionStrings( - ingestionSettingName: string, - options?: IngestionSettingsListConnectionStringsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { ingestionSettingName, options }, - listConnectionStringsOperationSpec - ); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: IngestionSettingsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.IngestionSettingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion14], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.IngestionSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion14], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ingestionSettingName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.IngestionSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.ingestionSetting, - queryParameters: [Parameters.apiVersion14], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ingestionSettingName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion14], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ingestionSettingName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listTokensOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}/listTokens", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.IngestionSettingToken - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion14], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ingestionSettingName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listConnectionStringsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}/listConnectionStrings", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ConnectionStrings - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion14], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ingestionSettingName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.IngestionSettingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/security/arm-security/src/operations/sensitivitySettings.ts b/sdk/security/arm-security/src/operations/sensitivitySettings.ts new file mode 100644 index 000000000000..f5c5d059edf7 --- /dev/null +++ b/sdk/security/arm-security/src/operations/sensitivitySettings.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SensitivitySettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SensitivitySettingsListOptionalParams, + SensitivitySettingsListResponse +} from "../models"; + +/** Class containing SensitivitySettings operations. */ +export class SensitivitySettingsImpl implements SensitivitySettings { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class SensitivitySettings class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets a list with a single sensitivity settings resource + * @param options The options parameters. + */ + list( + options?: SensitivitySettingsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsListResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts new file mode 100644 index 000000000000..24e9f0149172 --- /dev/null +++ b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts @@ -0,0 +1,283 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ServerVulnerabilityAssessmentsSettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + ServerVulnerabilityAssessmentsSettingUnion, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse, + ServerVulnerabilityAssessmentsSettingKindName, + ServerVulnerabilityAssessmentsSettingsGetOptionalParams, + ServerVulnerabilityAssessmentsSettingsGetResponse, + ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams, + ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse, + ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse +} from "../models"; + +/// +/** Class containing ServerVulnerabilityAssessmentsSettings operations. */ +export class ServerVulnerabilityAssessmentsSettingsImpl + implements ServerVulnerabilityAssessmentsSettings { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class ServerVulnerabilityAssessmentsSettings class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get a list of all the server vulnerability assessments settings over a subscription level scope + * @param options The options parameters. + */ + public listBySubscription( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Get a list of all the server vulnerability assessments settings over a subscription level scope + * @param options The options parameters. + */ + private _listBySubscription( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Get a server vulnerability assessments setting of the requested kind, that is set on the + * subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param options The options parameters. + */ + get( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + options?: ServerVulnerabilityAssessmentsSettingsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { settingKind, options }, + getOperationSpec + ); + } + + /** + * Create or update a server vulnerability assessments setting of the requested kind on the + * subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param serverVulnerabilityAssessmentsSetting A server vulnerability assessments setting over a + * predefined scope + * @param options The options parameters. + */ + createOrUpdate( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + serverVulnerabilityAssessmentsSetting: ServerVulnerabilityAssessmentsSettingUnion, + options?: ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { settingKind, serverVulnerabilityAssessmentsSetting, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Delete the server vulnerability assessments setting of the requested kind from the subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param options The options parameters. + */ + delete( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + options?: ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { settingKind, options }, + deleteOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams + ): Promise< + ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse + > { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSettingsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/{settingKind}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSetting + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.settingKind + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/{settingKind}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSetting + }, + 201: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSetting + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.serverVulnerabilityAssessmentsSetting, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.settingKind + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/{settingKind}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.settingKind + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSettingsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index 656fedf1aea4..028a8cd55c8e 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.ts @@ -164,7 +164,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -181,7 +181,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -203,7 +203,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.setting1, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts index 978b404987ae..00e51bff1d53 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts @@ -143,7 +143,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.body4, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.ruleId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -161,7 +161,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.ruleId], headerParameters: [Parameters.accept], serializer @@ -177,7 +177,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.ruleId], headerParameters: [Parameters.accept], serializer @@ -194,7 +194,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer @@ -212,7 +212,7 @@ const addOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.body5, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts index 66291f56d2cc..b92d9cb26b5a 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts @@ -86,7 +86,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [ Parameters.$host, Parameters.resourceId, @@ -108,7 +108,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId], headerParameters: [Parameters.accept], serializer diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts index 61fb5937f737..553a602e342b 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -82,7 +82,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId], headerParameters: [Parameters.accept], serializer @@ -99,7 +99,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion19], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer diff --git a/sdk/security/arm-security/src/operationsInterfaces/aPICollection.ts b/sdk/security/arm-security/src/operationsInterfaces/aPICollection.ts deleted file mode 100644 index e69dd4c37774..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/aPICollection.ts +++ /dev/null @@ -1,51 +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 { - ApiCollectionResponse, - APICollectionListOptionalParams, - APICollectionGetOptionalParams, - APICollectionGetResponse -} from "../models"; - -/// -/** Interface representing a APICollection. */ -export interface APICollection { - /** - * Gets a list of Azure API Management APIs that have been onboarded to Defender for APIs. If an Azure - * API Management API is onboarded to Defender for APIs, the system will monitor the operations within - * the Azure API Management API for intrusive behaviors and provide alerts for attacks that have been - * detected. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - options?: APICollectionListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets an Azure API Management API if it has been onboarded to Defender for APIs. If an Azure API - * Management API is onboarded to Defender for APIs, the system will monitor the operations within the - * Azure API Management API for intrusive behaviors and provide alerts for attacks that have been - * detected. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. - * @param apiCollectionId A string representing the apiCollections resource within the - * Microsoft.Security provider namespace. This string matches the Azure API Management API name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - apiCollectionId: string, - options?: APICollectionGetOptionalParams - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/aPICollectionOffboarding.ts b/sdk/security/arm-security/src/operationsInterfaces/aPICollectionOffboarding.ts deleted file mode 100644 index f8596b55ad2f..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/aPICollectionOffboarding.ts +++ /dev/null @@ -1,28 +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 { APICollectionOffboardingDeleteOptionalParams } from "../models"; - -/** Interface representing a APICollectionOffboarding. */ -export interface APICollectionOffboarding { - /** - * Offboard an Azure API Management API from Defender for APIs. The system will stop monitoring the - * operations within the Azure API Management API for intrusive behaviors. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. - * @param apiCollectionId A string representing the apiCollections resource within the - * Microsoft.Security provider namespace. This string matches the Azure API Management API name. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - serviceName: string, - apiCollectionId: string, - options?: APICollectionOffboardingDeleteOptionalParams - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/aPICollectionOnboarding.ts b/sdk/security/arm-security/src/operationsInterfaces/aPICollectionOnboarding.ts deleted file mode 100644 index a7a3b04d303d..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/aPICollectionOnboarding.ts +++ /dev/null @@ -1,32 +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 { - APICollectionOnboardingCreateOptionalParams, - APICollectionOnboardingCreateResponse -} from "../models"; - -/** Interface representing a APICollectionOnboarding. */ -export interface APICollectionOnboarding { - /** - * Onboard an Azure API Management API to Defender for APIs. The system will start monitoring the - * operations within the Azure Management API for intrusive behaviors and provide alerts for attacks - * that have been detected. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceName The name of the API Management service. - * @param apiCollectionId A string representing the apiCollections resource within the - * Microsoft.Security provider namespace. This string matches the Azure API Management API name. - * @param options The options parameters. - */ - create( - resourceGroupName: string, - serviceName: string, - apiCollectionId: string, - options?: APICollectionOnboardingCreateOptionalParams - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/aPICollections.ts b/sdk/security/arm-security/src/operationsInterfaces/aPICollections.ts new file mode 100644 index 000000000000..c97c793c8c44 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/aPICollections.ts @@ -0,0 +1,127 @@ +/* + * 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 { + ApiCollection, + APICollectionsListBySubscriptionOptionalParams, + APICollectionsListByResourceGroupOptionalParams, + APICollectionsListByAzureApiManagementServiceOptionalParams, + APICollectionsGetByAzureApiManagementServiceOptionalParams, + APICollectionsGetByAzureApiManagementServiceResponse, + APICollectionsOnboardAzureApiManagementApiOptionalParams, + APICollectionsOnboardAzureApiManagementApiResponse, + APICollectionsOffboardAzureApiManagementApiOptionalParams +} from "../models"; + +/// +/** Interface representing a APICollections. */ +export interface APICollections { + /** + * Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender + * for APIs. + * @param options The options parameters. + */ + listBySubscription( + options?: APICollectionsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a list of API collections within a resource group that have been onboarded to Microsoft + * Defender for APIs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: APICollectionsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a list of Azure API Management APIs that have been onboarded to Microsoft Defender for APIs. If + * an Azure API Management API is onboarded to Microsoft Defender for APIs, the system will monitor the + * operations within the Azure API Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByAzureApiManagementService( + resourceGroupName: string, + serviceName: string, + options?: APICollectionsListByAzureApiManagementServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets an Azure API Management API if it has been onboarded to Microsoft Defender for APIs. If an + * Azure API Management API is onboarded to Microsoft Defender for APIs, the system will monitor the + * operations within the Azure API Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getByAzureApiManagementService( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: APICollectionsGetByAzureApiManagementServiceOptionalParams + ): Promise; + /** + * Onboard an Azure API Management API to Microsoft Defender for APIs. The system will start monitoring + * the operations within the Azure Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + beginOnboardAzureApiManagementApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: APICollectionsOnboardAzureApiManagementApiOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + APICollectionsOnboardAzureApiManagementApiResponse + > + >; + /** + * Onboard an Azure API Management API to Microsoft Defender for APIs. The system will start monitoring + * the operations within the Azure Management API for intrusive behaviors and provide alerts for + * attacks that have been detected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + beginOnboardAzureApiManagementApiAndWait( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: APICollectionsOnboardAzureApiManagementApiOptionalParams + ): Promise; + /** + * Offboard an Azure API Management API from Microsoft Defender for APIs. The system will stop + * monitoring the operations within the Azure API Management API for intrusive behaviors. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + offboardAzureApiManagementApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: APICollectionsOffboardAzureApiManagementApiOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts new file mode 100644 index 000000000000..f7364a19154d --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + AzureDevOpsOrg, + AzureDevOpsOrgsListOptionalParams, + AzureDevOpsOrgsListAvailableOptionalParams, + AzureDevOpsOrgsListAvailableResponse, + AzureDevOpsOrgsGetOptionalParams, + AzureDevOpsOrgsGetResponse, + AzureDevOpsOrgsCreateOrUpdateOptionalParams, + AzureDevOpsOrgsCreateOrUpdateResponse, + AzureDevOpsOrgsUpdateOptionalParams, + AzureDevOpsOrgsUpdateResponse +} from "../models"; + +/// +/** Interface representing a AzureDevOpsOrgs. */ +export interface AzureDevOpsOrgs { + /** + * Returns a list of Azure DevOps organizations onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of all Azure DevOps organizations accessible by the user token consumed by the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListAvailableOptionalParams + ): Promise; + /** + * Returns a monitored Azure DevOps organization resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsOrgsGetOptionalParams + ): Promise; + /** + * Creates or updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsOrgsCreateOrUpdateResponse + > + >; + /** + * Creates or updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsOrgsUpdateResponse + > + >; + /** + * Updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsProjects.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsProjects.ts new file mode 100644 index 000000000000..1ec0a8c3388d --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsProjects.ts @@ -0,0 +1,131 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + AzureDevOpsProject, + AzureDevOpsProjectsListOptionalParams, + AzureDevOpsProjectsGetOptionalParams, + AzureDevOpsProjectsGetResponse, + AzureDevOpsProjectsCreateOrUpdateOptionalParams, + AzureDevOpsProjectsCreateOrUpdateResponse, + AzureDevOpsProjectsUpdateOptionalParams, + AzureDevOpsProjectsUpdateResponse +} from "../models"; + +/// +/** Interface representing a AzureDevOpsProjects. */ +export interface AzureDevOpsProjects { + /** + * Returns a list of Azure DevOps projects onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsProjectsGetOptionalParams + ): Promise; + /** + * Creates or updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsProjectsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsProjectsUpdateResponse + > + >; + /** + * Updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts new file mode 100644 index 000000000000..82d95be13d56 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + AzureDevOpsRepository, + AzureDevOpsReposListOptionalParams, + AzureDevOpsReposGetOptionalParams, + AzureDevOpsReposGetResponse, + AzureDevOpsReposCreateOrUpdateOptionalParams, + AzureDevOpsReposCreateOrUpdateResponse, + AzureDevOpsReposUpdateOptionalParams, + AzureDevOpsReposUpdateResponse +} from "../models"; + +/// +/** Interface representing a AzureDevOpsRepos. */ +export interface AzureDevOpsRepos { + /** + * Returns a list of Azure DevOps repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + options?: AzureDevOpsReposGetOptionalParams + ): Promise; + /** + * Creates or updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsReposCreateOrUpdateResponse + > + >; + /** + * Creates or updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsReposUpdateResponse + > + >; + /** + * Updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposUpdateOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts b/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts new file mode 100644 index 000000000000..ef0e1c34366d --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SettingNameAutoGenerated, + DefenderForStorageGetOptionalParams, + DefenderForStorageGetResponse, + DefenderForStorageSetting, + DefenderForStorageCreateOptionalParams, + DefenderForStorageCreateResponse +} from "../models"; + +/** Interface representing a DefenderForStorage. */ +export interface DefenderForStorage { + /** + * Gets the Defender for Storage settings for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param options The options parameters. + */ + get( + resourceId: string, + settingName: SettingNameAutoGenerated, + options?: DefenderForStorageGetOptionalParams + ): Promise; + /** + * Creates or updates the Defender for Storage settings on a specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param defenderForStorageSetting Defender for Storage Settings + * @param options The options parameters. + */ + create( + resourceId: string, + settingName: SettingNameAutoGenerated, + defenderForStorageSetting: DefenderForStorageSetting, + options?: DefenderForStorageCreateOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/devOpsConfigurations.ts b/sdk/security/arm-security/src/operationsInterfaces/devOpsConfigurations.ts new file mode 100644 index 000000000000..72fbe73b4f0a --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/devOpsConfigurations.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + DevOpsConfiguration, + DevOpsConfigurationsListOptionalParams, + DevOpsConfigurationsGetOptionalParams, + DevOpsConfigurationsGetResponse, + DevOpsConfigurationsCreateOrUpdateOptionalParams, + DevOpsConfigurationsCreateOrUpdateResponse, + DevOpsConfigurationsUpdateOptionalParams, + DevOpsConfigurationsUpdateResponse, + DevOpsConfigurationsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a DevOpsConfigurations. */ +export interface DevOpsConfigurations { + /** + * List DevOps Configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsGetOptionalParams + ): Promise; + /** + * Creates or updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DevOpsConfigurationsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DevOpsConfigurationsUpdateResponse + > + >; + /** + * Updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsUpdateOptionalParams + ): Promise; + /** + * Deletes a DevOps Connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a DevOps Connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/devOpsOperationResults.ts b/sdk/security/arm-security/src/operationsInterfaces/devOpsOperationResults.ts new file mode 100644 index 000000000000..7cc12d8b1e12 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/devOpsOperationResults.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + DevOpsOperationResultsGetOptionalParams, + DevOpsOperationResultsGetResponse +} from "../models"; + +/** Interface representing a DevOpsOperationResults. */ +export interface DevOpsOperationResults { + /** + * Get devops long running operation result. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param operationResultId The operation result Id. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + operationResultId: string, + options?: DevOpsOperationResultsGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitHubOwners.ts b/sdk/security/arm-security/src/operationsInterfaces/gitHubOwners.ts new file mode 100644 index 000000000000..c0e32f1c8c69 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitHubOwners.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GitHubOwner, + GitHubOwnersListOptionalParams, + GitHubOwnersListAvailableOptionalParams, + GitHubOwnersListAvailableResponse, + GitHubOwnersGetOptionalParams, + GitHubOwnersGetResponse +} from "../models"; + +/// +/** Interface representing a GitHubOwners. */ +export interface GitHubOwners { + /** + * Returns a list of GitHub owners onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of all GitHub owners accessible by the user token consumed by the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListAvailableOptionalParams + ): Promise; + /** + * Returns a monitored GitHub owner. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubOwnersGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitHubRepos.ts b/sdk/security/arm-security/src/operationsInterfaces/gitHubRepos.ts new file mode 100644 index 000000000000..f58f04519e9d --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitHubRepos.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GitHubRepository, + GitHubReposListOptionalParams, + GitHubReposGetOptionalParams, + GitHubReposGetResponse +} from "../models"; + +/// +/** Interface representing a GitHubRepos. */ +export interface GitHubRepos { + /** + * Returns a list of GitHub repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a monitored GitHub repository. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param repoName The repository name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + repoName: string, + options?: GitHubReposGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitLabGroups.ts b/sdk/security/arm-security/src/operationsInterfaces/gitLabGroups.ts new file mode 100644 index 000000000000..24873565ba0a --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitLabGroups.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GitLabGroup, + GitLabGroupsListOptionalParams, + GitLabGroupsListAvailableOptionalParams, + GitLabGroupsListAvailableResponse, + GitLabGroupsGetOptionalParams, + GitLabGroupsGetResponse +} from "../models"; + +/// +/** Interface representing a GitLabGroups. */ +export interface GitLabGroups { + /** + * Returns a list of GitLab groups onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of all GitLab groups accessible by the user token consumed by the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListAvailableOptionalParams + ): Promise; + /** + * Returns a monitored GitLab Group resource for a given fully-qualified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabGroupsGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitLabProjects.ts b/sdk/security/arm-security/src/operationsInterfaces/gitLabProjects.ts new file mode 100644 index 000000000000..cd4e76c8df07 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitLabProjects.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GitLabProject, + GitLabProjectsListOptionalParams, + GitLabProjectsGetOptionalParams, + GitLabProjectsGetResponse +} from "../models"; + +/// +/** Interface representing a GitLabProjects. */ +export interface GitLabProjects { + /** + * Gets a list of GitLab projects that are directly owned by given group and onboarded to the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a monitored GitLab Project resource for a given fully-qualified group name and project name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param projectName The project name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + projectName: string, + options?: GitLabProjectsGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts b/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts new file mode 100644 index 000000000000..788d5dac2abf --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + GitLabSubgroupsListOptionalParams, + GitLabSubgroupsListResponse +} from "../models"; + +/** Interface representing a GitLabSubgroups. */ +export interface GitLabSubgroups { + /** + * Gets nested subgroups of given GitLab Group which are onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabSubgroupsListOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/healthReportOperations.ts b/sdk/security/arm-security/src/operationsInterfaces/healthReportOperations.ts deleted file mode 100644 index 240b79319a78..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/healthReportOperations.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - HealthReportGetOptionalParams, - HealthReportGetResponse -} from "../models"; - -/** Interface representing a HealthReportOperations. */ -export interface HealthReportOperations { - /** - * Get health report of resource - * @param resourceId The identifier of the resource. - * @param healthReportName The health report Key - Unique key for the health report type - * @param options The options parameters. - */ - get( - resourceId: string, - healthReportName: string, - options?: HealthReportGetOptionalParams - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/healthReports.ts b/sdk/security/arm-security/src/operationsInterfaces/healthReports.ts index 2126939b24b8..19c9d8b3fd5a 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/healthReports.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/healthReports.ts @@ -7,7 +7,12 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { HealthReport, HealthReportsListOptionalParams } from "../models"; +import { + HealthReport, + HealthReportsListOptionalParams, + HealthReportsGetOptionalParams, + HealthReportsGetResponse +} from "../models"; /// /** Interface representing a HealthReports. */ @@ -23,4 +28,15 @@ export interface HealthReports { scope: string, options?: HealthReportsListOptionalParams ): PagedAsyncIterableIterator; + /** + * Get health report of resource + * @param resourceId The identifier of the resource. + * @param healthReportName The health report Key - Unique key for the health report type + * @param options The options parameters. + */ + get( + resourceId: string, + healthReportName: string, + options?: HealthReportsGetOptionalParams + ): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/index.ts b/sdk/security/arm-security/src/operationsInterfaces/index.ts index 34ac4c6ae693..ae6b80c22cc5 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/index.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/index.ts @@ -47,9 +47,9 @@ export * from "./secureScoreControls"; export * from "./secureScoreControlDefinitions"; export * from "./securitySolutions"; export * from "./connectors"; +export * from "./sensitivitySettings"; export * from "./alerts"; export * from "./settings"; -export * from "./ingestionSettings"; export * from "./softwareInventories"; export * from "./governanceRules"; export * from "./governanceAssignments"; @@ -57,13 +57,22 @@ export * from "./applications"; export * from "./applicationOperations"; export * from "./securityConnectorApplications"; export * from "./securityConnectorApplication"; -export * from "./aPICollection"; -export * from "./aPICollectionOnboarding"; -export * from "./aPICollectionOffboarding"; -export * from "./healthReports"; -export * from "./healthReportOperations"; +export * from "./aPICollections"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentScanResults"; export * from "./sqlVulnerabilityAssessmentBaselineRules"; export * from "./securityConnectors"; export * from "./securityOperators"; +export * from "./serverVulnerabilityAssessmentsSettings"; +export * from "./healthReports"; +export * from "./defenderForStorage"; +export * from "./azureDevOpsOrgs"; +export * from "./azureDevOpsProjects"; +export * from "./azureDevOpsRepos"; +export * from "./devOpsConfigurations"; +export * from "./gitHubOwners"; +export * from "./gitHubRepos"; +export * from "./gitLabGroups"; +export * from "./gitLabSubgroups"; +export * from "./gitLabProjects"; +export * from "./devOpsOperationResults"; diff --git a/sdk/security/arm-security/src/operationsInterfaces/ingestionSettings.ts b/sdk/security/arm-security/src/operationsInterfaces/ingestionSettings.ts deleted file mode 100644 index 97baffd1ac2f..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/ingestionSettings.ts +++ /dev/null @@ -1,85 +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 { - IngestionSetting, - IngestionSettingsListOptionalParams, - IngestionSettingsGetOptionalParams, - IngestionSettingsGetResponse, - IngestionSettingsCreateOptionalParams, - IngestionSettingsCreateResponse, - IngestionSettingsDeleteOptionalParams, - IngestionSettingsListTokensOptionalParams, - IngestionSettingsListTokensResponse, - IngestionSettingsListConnectionStringsOptionalParams, - IngestionSettingsListConnectionStringsResponse -} from "../models"; - -/// -/** Interface representing a IngestionSettings. */ -export interface IngestionSettings { - /** - * Settings for ingesting security data and logs to correlate with resources associated with the - * subscription. - * @param options The options parameters. - */ - list( - options?: IngestionSettingsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Settings for ingesting security data and logs to correlate with resources associated with the - * subscription. - * @param ingestionSettingName Name of the ingestion setting - * @param options The options parameters. - */ - get( - ingestionSettingName: string, - options?: IngestionSettingsGetOptionalParams - ): Promise; - /** - * Create setting for ingesting security data and logs to correlate with resources associated with the - * subscription. - * @param ingestionSettingName Name of the ingestion setting - * @param ingestionSetting Ingestion setting object - * @param options The options parameters. - */ - create( - ingestionSettingName: string, - ingestionSetting: IngestionSetting, - options?: IngestionSettingsCreateOptionalParams - ): Promise; - /** - * Deletes the ingestion settings for this subscription. - * @param ingestionSettingName Name of the ingestion setting - * @param options The options parameters. - */ - delete( - ingestionSettingName: string, - options?: IngestionSettingsDeleteOptionalParams - ): Promise; - /** - * Returns the token that is used for correlating ingested telemetry with the resources in the - * subscription. - * @param ingestionSettingName Name of the ingestion setting - * @param options The options parameters. - */ - listTokens( - ingestionSettingName: string, - options?: IngestionSettingsListTokensOptionalParams - ): Promise; - /** - * Connection strings for ingesting security scan logs and data. - * @param ingestionSettingName Name of the ingestion setting - * @param options The options parameters. - */ - listConnectionStrings( - ingestionSettingName: string, - options?: IngestionSettingsListConnectionStringsOptionalParams - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts new file mode 100644 index 000000000000..cbef9da20be0 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts @@ -0,0 +1,23 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SensitivitySettingsListOptionalParams, + SensitivitySettingsListResponse +} from "../models"; + +/** Interface representing a SensitivitySettings. */ +export interface SensitivitySettings { + /** + * Gets a list with a single sensitivity settings resource + * @param options The options parameters. + */ + list( + options?: SensitivitySettingsListOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/serverVulnerabilityAssessmentsSettings.ts b/sdk/security/arm-security/src/operationsInterfaces/serverVulnerabilityAssessmentsSettings.ts new file mode 100644 index 000000000000..2263f7712e18 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/serverVulnerabilityAssessmentsSettings.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ServerVulnerabilityAssessmentsSettingUnion, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams, + ServerVulnerabilityAssessmentsSettingKindName, + ServerVulnerabilityAssessmentsSettingsGetOptionalParams, + ServerVulnerabilityAssessmentsSettingsGetResponse, + ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams, + ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse, + ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ServerVulnerabilityAssessmentsSettings. */ +export interface ServerVulnerabilityAssessmentsSettings { + /** + * Get a list of all the server vulnerability assessments settings over a subscription level scope + * @param options The options parameters. + */ + listBySubscription( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a server vulnerability assessments setting of the requested kind, that is set on the + * subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param options The options parameters. + */ + get( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + options?: ServerVulnerabilityAssessmentsSettingsGetOptionalParams + ): Promise; + /** + * Create or update a server vulnerability assessments setting of the requested kind on the + * subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param serverVulnerabilityAssessmentsSetting A server vulnerability assessments setting over a + * predefined scope + * @param options The options parameters. + */ + createOrUpdate( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + serverVulnerabilityAssessmentsSetting: ServerVulnerabilityAssessmentsSettingUnion, + options?: ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete the server vulnerability assessments setting of the requested kind from the subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param options The options parameters. + */ + delete( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + options?: ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 2a9d8ca7353f..a0f359b7289c 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -51,9 +51,9 @@ import { SecureScoreControlDefinitionsImpl, SecuritySolutionsImpl, ConnectorsImpl, + SensitivitySettingsImpl, AlertsImpl, SettingsImpl, - IngestionSettingsImpl, SoftwareInventoriesImpl, GovernanceRulesImpl, GovernanceAssignmentsImpl, @@ -61,16 +61,25 @@ import { ApplicationOperationsImpl, SecurityConnectorApplicationsImpl, SecurityConnectorApplicationImpl, - APICollectionImpl, - APICollectionOnboardingImpl, - APICollectionOffboardingImpl, - HealthReportsImpl, - HealthReportOperationsImpl, + APICollectionsImpl, SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentScanResultsImpl, SqlVulnerabilityAssessmentBaselineRulesImpl, SecurityConnectorsImpl, - SecurityOperatorsImpl + SecurityOperatorsImpl, + ServerVulnerabilityAssessmentsSettingsImpl, + HealthReportsImpl, + DefenderForStorageImpl, + AzureDevOpsOrgsImpl, + AzureDevOpsProjectsImpl, + AzureDevOpsReposImpl, + DevOpsConfigurationsImpl, + GitHubOwnersImpl, + GitHubReposImpl, + GitLabGroupsImpl, + GitLabSubgroupsImpl, + GitLabProjectsImpl, + DevOpsOperationResultsImpl } from "./operations"; import { MdeOnboardings, @@ -114,9 +123,9 @@ import { SecureScoreControlDefinitions, SecuritySolutions, Connectors, + SensitivitySettings, Alerts, Settings, - IngestionSettings, SoftwareInventories, GovernanceRules, GovernanceAssignments, @@ -124,22 +133,40 @@ import { ApplicationOperations, SecurityConnectorApplications, SecurityConnectorApplication, - APICollection, - APICollectionOnboarding, - APICollectionOffboarding, - HealthReports, - HealthReportOperations, + APICollections, SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentScanResults, SqlVulnerabilityAssessmentBaselineRules, SecurityConnectors, - SecurityOperators + SecurityOperators, + ServerVulnerabilityAssessmentsSettings, + HealthReports, + DefenderForStorage, + AzureDevOpsOrgs, + AzureDevOpsProjects, + AzureDevOpsRepos, + DevOpsConfigurations, + GitHubOwners, + GitHubRepos, + GitLabGroups, + GitLabSubgroups, + GitLabProjects, + DevOpsOperationResults } from "./operationsInterfaces"; -import { SecurityCenterOptionalParams } from "./models"; +import * as Parameters from "./models/parameters"; +import * as Mappers from "./models/mappers"; +import { + SecurityCenterOptionalParams, + UpdateSensitivitySettingsRequest, + UpdateSensitivitySettingsOptionalParams, + UpdateSensitivitySettingsResponse, + GetSensitivitySettingsOptionalParams, + GetSensitivitySettingsOperationResponse +} from "./models"; export class SecurityCenter extends coreClient.ServiceClient { $host: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the SecurityCenter class. @@ -151,12 +178,26 @@ export class SecurityCenter extends coreClient.ServiceClient { credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SecurityCenterOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: SecurityCenterOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: SecurityCenterOptionalParams | string, + options?: SecurityCenterOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -290,9 +331,9 @@ export class SecurityCenter extends coreClient.ServiceClient { ); this.securitySolutions = new SecuritySolutionsImpl(this); this.connectors = new ConnectorsImpl(this); + this.sensitivitySettings = new SensitivitySettingsImpl(this); this.alerts = new AlertsImpl(this); this.settings = new SettingsImpl(this); - this.ingestionSettings = new IngestionSettingsImpl(this); this.softwareInventories = new SoftwareInventoriesImpl(this); this.governanceRules = new GovernanceRulesImpl(this); this.governanceAssignments = new GovernanceAssignmentsImpl(this); @@ -304,11 +345,7 @@ export class SecurityCenter extends coreClient.ServiceClient { this.securityConnectorApplication = new SecurityConnectorApplicationImpl( this ); - this.aPICollection = new APICollectionImpl(this); - this.aPICollectionOnboarding = new APICollectionOnboardingImpl(this); - this.aPICollectionOffboarding = new APICollectionOffboardingImpl(this); - this.healthReports = new HealthReportsImpl(this); - this.healthReportOperations = new HealthReportOperationsImpl(this); + this.aPICollections = new APICollectionsImpl(this); this.sqlVulnerabilityAssessmentScans = new SqlVulnerabilityAssessmentScansImpl( this ); @@ -320,6 +357,49 @@ export class SecurityCenter extends coreClient.ServiceClient { ); this.securityConnectors = new SecurityConnectorsImpl(this); this.securityOperators = new SecurityOperatorsImpl(this); + this.serverVulnerabilityAssessmentsSettings = new ServerVulnerabilityAssessmentsSettingsImpl( + this + ); + this.healthReports = new HealthReportsImpl(this); + this.defenderForStorage = new DefenderForStorageImpl(this); + this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(this); + this.azureDevOpsProjects = new AzureDevOpsProjectsImpl(this); + this.azureDevOpsRepos = new AzureDevOpsReposImpl(this); + this.devOpsConfigurations = new DevOpsConfigurationsImpl(this); + this.gitHubOwners = new GitHubOwnersImpl(this); + this.gitHubRepos = new GitHubReposImpl(this); + this.gitLabGroups = new GitLabGroupsImpl(this); + this.gitLabSubgroups = new GitLabSubgroupsImpl(this); + this.gitLabProjects = new GitLabProjectsImpl(this); + this.devOpsOperationResults = new DevOpsOperationResultsImpl(this); + } + + /** + * Updates data sensitivity settings for sensitive data discovery + * @param sensitivitySettings The data sensitivity settings to update + * @param options The options parameters. + */ + updateSensitivitySettings( + sensitivitySettings: UpdateSensitivitySettingsRequest, + options?: UpdateSensitivitySettingsOptionalParams + ): Promise { + return this.sendOperationRequest( + { sensitivitySettings, options }, + updateSensitivitySettingsOperationSpec + ); + } + + /** + * Gets data sensitivity settings for sensitive data discovery + * @param options The options parameters. + */ + getSensitivitySettings( + options?: GetSensitivitySettingsOptionalParams + ): Promise { + return this.sendOperationRequest( + { options }, + getSensitivitySettingsOperationSpec + ); } mdeOnboardings: MdeOnboardings; @@ -363,9 +443,9 @@ export class SecurityCenter extends coreClient.ServiceClient { secureScoreControlDefinitions: SecureScoreControlDefinitions; securitySolutions: SecuritySolutions; connectors: Connectors; + sensitivitySettings: SensitivitySettings; alerts: Alerts; settings: Settings; - ingestionSettings: IngestionSettings; softwareInventories: SoftwareInventories; governanceRules: GovernanceRules; governanceAssignments: GovernanceAssignments; @@ -373,14 +453,60 @@ export class SecurityCenter extends coreClient.ServiceClient { applicationOperations: ApplicationOperations; securityConnectorApplications: SecurityConnectorApplications; securityConnectorApplication: SecurityConnectorApplication; - aPICollection: APICollection; - aPICollectionOnboarding: APICollectionOnboarding; - aPICollectionOffboarding: APICollectionOffboarding; - healthReports: HealthReports; - healthReportOperations: HealthReportOperations; + aPICollections: APICollections; sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentScanResults: SqlVulnerabilityAssessmentScanResults; sqlVulnerabilityAssessmentBaselineRules: SqlVulnerabilityAssessmentBaselineRules; securityConnectors: SecurityConnectors; securityOperators: SecurityOperators; + serverVulnerabilityAssessmentsSettings: ServerVulnerabilityAssessmentsSettings; + healthReports: HealthReports; + defenderForStorage: DefenderForStorage; + azureDevOpsOrgs: AzureDevOpsOrgs; + azureDevOpsProjects: AzureDevOpsProjects; + azureDevOpsRepos: AzureDevOpsRepos; + devOpsConfigurations: DevOpsConfigurations; + gitHubOwners: GitHubOwners; + gitHubRepos: GitHubRepos; + gitLabGroups: GitLabGroups; + gitLabSubgroups: GitLabSubgroups; + gitLabProjects: GitLabProjects; + devOpsOperationResults: DevOpsOperationResults; } +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateSensitivitySettingsOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings/current", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.sensitivitySettings, + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getSensitivitySettingsOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings/current", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/test/sampleTest.ts b/sdk/security/arm-security/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/security/arm-security/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/security/arm-security/tsconfig.json b/sdk/security/arm-security/tsconfig.json index 3f5144384125..3e6ae96443f3 100644 --- a/sdk/security/arm-security/tsconfig.json +++ b/sdk/security/arm-security/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-security": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"