diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 85fb391cfcde..fc73aad720d4 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3991,7 +3991,7 @@ packages: dependencies: semver: 7.4.0 shelljs: 0.8.5 - typescript: 5.1.0-dev.20230418 + typescript: 5.1.0-dev.20230419 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8859,8 +8859,8 @@ packages: hasBin: true dev: false - /typescript/5.1.0-dev.20230418: - resolution: {integrity: sha512-BfA/KV0xddF8ZCAQZxZ0FoS8p+nWKXVaa5fctXW6WNGfcYF04cXlLB6F6uf3uCVbd0iad4YdHchz3KR0722QLg==} + /typescript/5.1.0-dev.20230419: + resolution: {integrity: sha512-J8QfDyJDC/8fpA7fzlVBx4zSR+dGVd6afEpu6nEtplA98lcW3NHA7v9KcQ0AJ8SZGoCDLIl+8BVfiI/CkFS2fg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -14651,7 +14651,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-XdtHqzMu69w+vs23df9K23SC61ZsdehvESqj9oerNWEy+gUfY1c72dENNOivkidD2U4QyHBIMmbheqZ5nrmnXg==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-TtXURWe4LjcehmuQxAkZ6GLs5Uzt92B4Jsc95LlQeg0/d+Ox4iyIwdkRk7E8BVLV2wPjLgrLO7vNmTKL9/TJ7Q==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -14672,7 +14672,7 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_c43y4oaxxwie3ialrfuzfwwhqq tslib: 2.5.0 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color diff --git a/sdk/security/arm-security/CHANGELOG.md b/sdk/security/arm-security/CHANGELOG.md index 1ca49d61ac44..5c646b0486de 100644 --- a/sdk/security/arm-security/CHANGELOG.md +++ b/sdk/security/arm-security/CHANGELOG.md @@ -1,16 +1,6 @@ # Release History - -## 6.0.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 6.0.0-beta.3 (2023-03-21) + +## 6.0.0-beta.4 (2023-04-20) **Features** @@ -25,6 +15,8 @@ - Added operation group HealthReports - Added operation group SecurityConnectorApplication - Added operation group SecurityConnectorApplications + - Added operation group SecurityOperators + - Added operation group SensitivitySettings - Added operation Alerts.beginSimulate - Added operation Alerts.beginSimulateAndWait - Added operation Alerts.updateResourceGroupLevelStateToInProgress @@ -80,6 +72,7 @@ - Added Interface AzureDevOpsScopeEnvironmentData - Added Interface AzureResourceDetails - Added Interface AzureResourceIdentifier + - Added Interface BuiltInInfoType - Added Interface CefExternalSecuritySolution - Added Interface CefSolutionProperties - Added Interface Compliance @@ -94,16 +87,21 @@ - Added Interface CspmMonitorGcpOffering - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - Added Interface CspmMonitorGithubOffering + - Added Interface CspmMonitorGitLabOffering - Added Interface CustomAssessmentAutomation - Added Interface CustomAssessmentAutomationRequest - Added Interface CustomEntityStoreAssignment - Added Interface DataExportSettings - Added Interface DefenderCspmAwsOffering + - Added Interface DefenderCspmAwsOfferingDatabasesDspm + - Added Interface DefenderCspmAwsOfferingDataSensitivityDiscovery - Added Interface DefenderCspmAwsOfferingVmScanners - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - Added Interface DefenderCspmGcpOffering - Added Interface DefenderFoDatabasesAwsOffering - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning + - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration + - Added Interface DefenderFoDatabasesAwsOfferingDatabasesDspm - Added Interface DefenderFoDatabasesAwsOfferingRds - Added Interface DefenderForContainersAwsOffering - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment @@ -113,10 +111,13 @@ - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - Added Interface DefenderForDatabasesGcpOffering - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning + - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - Added Interface DefenderForDevOpsAzureDevOpsOffering - Added Interface DefenderForDevOpsGithubOffering + - Added Interface DefenderForDevOpsGitLabOffering - Added Interface DefenderForServersAwsOffering + - Added Interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - Added Interface DefenderForServersAwsOfferingSubPlan - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning @@ -125,11 +126,14 @@ - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - Added Interface DefenderForServersGcpOffering - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning + - Added Interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration - Added Interface DefenderForServersGcpOfferingDefenderForServers - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - Added Interface DefenderForServersGcpOfferingSubPlan - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration + - Added Interface DefenderForServersGcpOfferingVmScanners + - Added Interface DefenderForServersGcpOfferingVmScannersConfiguration - Added Interface DenylistCustomAlertRule - Added Interface DeviceSecurityGroup - Added Interface DirectMethodInvokesNotInAllowedRange @@ -141,6 +145,7 @@ - Added Interface ErrorResponse - Added Interface ErrorResponseAutoGenerated - Added Interface ExecuteGovernanceRuleParams + - Added Interface Extension - Added Interface ExternalSecuritySolution - Added Interface FailedLocalLoginsNotInAllowedRange - Added Interface FileUploadsNotInAllowedRange @@ -150,7 +155,13 @@ - 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 GithubScopeEnvironmentData + - Added Interface GitlabScopeEnvironmentData - Added Interface GovernanceAssignment - Added Interface GovernanceAssignmentAdditionalData - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams @@ -184,8 +195,10 @@ - Added Interface HttpC2DMessagesNotInAllowedRange - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - Added Interface HttpD2CMessagesNotInAllowedRange + - Added Interface Identity - Added Interface InformationProtectionAwsOffering - Added Interface InformationProtectionPolicy + - Added Interface InfoType - Added Interface IngestionSetting - Added Interface IoTSecurityAggregatedAlert - Added Interface IoTSecurityAggregatedRecommendation @@ -193,6 +206,7 @@ - Added Interface IoTSecuritySolutionModel - Added Interface Issue - Added Interface JitNetworkAccessPolicy + - Added Interface Label - Added Interface ListCustomAlertRule - Added Interface LocalUserNotAllowed - Added Interface LogAnalyticsIdentifier @@ -203,6 +217,7 @@ - Added Interface OnPremiseResourceDetails - Added Interface OnPremiseSqlResourceDetails - Added Interface OperationResultAutoGenerated + - Added Interface OperationStatus - Added Interface Pricing - Added Interface ProcessNotAllowed - Added Interface QueuePurgesNotInAllowedRange @@ -233,10 +248,17 @@ - Added Interface SecurityContact - Added Interface SecurityContactPropertiesAlertNotifications - Added Interface SecurityContactPropertiesNotificationsByRole + - Added Interface SecurityOperator + - Added Interface SecurityOperatorList + - Added Interface SecurityOperatorsCreateOrUpdateOptionalParams + - Added Interface SecurityOperatorsDeleteOptionalParams + - Added Interface SecurityOperatorsGetOptionalParams + - Added Interface SecurityOperatorsListOptionalParams - Added Interface SecuritySolution - Added Interface SecuritySolutionsReferenceData - Added Interface SecuritySubAssessment - Added Interface SecurityTask + - Added Interface SensitivitySettingsListOptionalParams - Added Interface ServerVulnerabilityAssessment - Added Interface ServerVulnerabilityProperties - Added Interface Setting @@ -250,6 +272,8 @@ - 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 @@ -262,10 +286,12 @@ - Added Type Alias ApplicationsListResponse - Added Type Alias ApplicationSourceResourceType - Added Type Alias AwsOrganizationalDataUnion + - Added Type Alias Code - Added Type Alias ConnectionType - Added Type Alias EnvironmentDataUnion - Added Type Alias EnvironmentType - Added Type Alias GcpOrganizationalDataUnion + - Added Type Alias GetSensitivitySettingsOperationResponse - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - Added Type Alias GovernanceAssignmentsGetResponse - Added Type Alias GovernanceAssignmentsListNextResponse @@ -283,7 +309,9 @@ - Added Type Alias HealthReportGetResponse - Added Type Alias HealthReportsListNextResponse - Added Type Alias HealthReportsListResponse + - Added Type Alias IsEnabled - Added Type Alias MinimalSeverity + - Added Type Alias MipIntegrationStatus - Added Type Alias OperationResult - Added Type Alias Roles - Added Type Alias ScanningMode @@ -292,22 +320,31 @@ - Added Type Alias SecurityConnectorApplicationGetResponse - Added Type Alias SecurityConnectorApplicationsListNextResponse - Added Type Alias SecurityConnectorApplicationsListResponse + - Added Type Alias SecurityOperatorsCreateOrUpdateResponse + - Added Type Alias SecurityOperatorsGetResponse + - Added Type Alias SecurityOperatorsListResponse + - Added Type Alias SensitivitySettingsListResponse - 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" + - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" | "CspmMonitorGitLab" | "DefenderForDevOpsGitLab" - Added Enum KnownApplicationConditionOperator - Added Enum KnownApplicationSourceResourceType + - Added Enum KnownCode - Added Enum KnownEnvironmentType - Added Enum KnownGovernanceRuleConditionOperator - Added Enum KnownGovernanceRuleOwnerSourceType - Added Enum KnownGovernanceRuleSourceResourceType - Added Enum KnownGovernanceRuleType + - Added Enum KnownIsEnabled - Added Enum KnownMinimalSeverity + - Added Enum KnownMipIntegrationStatus - Added Enum KnownOperationResult - Added Enum KnownRoles - Added Enum KnownScanningMode @@ -319,9 +356,11 @@ - Enum KnownBundleType has a new value CosmosDbs - Enum KnownCloudName has a new value AzureDevOps - Enum KnownCloudName has a new value Github + - Enum KnownCloudName has a new value GitLab - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - Enum KnownOfferingType has a new value CspmMonitorGcp - Enum KnownOfferingType has a new value CspmMonitorGithub + - Enum KnownOfferingType has a new value CspmMonitorGitLab - Enum KnownOfferingType has a new value DefenderCspmAws - Enum KnownOfferingType has a new value DefenderCspmGcp - Enum KnownOfferingType has a new value DefenderForContainersGcp @@ -329,9 +368,16 @@ - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - Enum KnownOfferingType has a new value DefenderForDevOpsGithub + - Enum KnownOfferingType has a new value DefenderForDevOpsGitLab - Enum KnownOfferingType has a new value DefenderForServersGcp - Enum KnownSettingName has a new value WdatpUnifiedSolution - Added function getContinuationToken + +**Breaking Changes** + + - Removed operation Alerts.simulate + - Removed operation SecurityContacts.update + - Operation AllowedConnections.get has a new signature - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter @@ -346,12 +392,6 @@ - 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 diff --git a/sdk/security/arm-security/_meta.json b/sdk/security/arm-security/_meta.json index 536df0410df4..2a68b312fb3b 100644 --- a/sdk/security/arm-security/_meta.json +++ b/sdk/security/arm-security/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ddcde53422ff186f5b69fb32338ecac3d11c3bca", + "commit": "23b458216502a081e883d591843080a247996fe8", "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.3 --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.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index 94cd12aacacb..84a0acb4555e 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -36,7 +36,7 @@ "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "dotenv": "^16.0.0", @@ -111,13 +111,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 e5e97a09e3ca..3f91a3288c69 100644 --- a/sdk/security/arm-security/review/arm-security.api.md +++ b/sdk/security/arm-security/review/arm-security.api.md @@ -1057,8 +1057,10 @@ export interface AwsCredsAuthenticationDetailsProperties extends AuthenticationD // @public export interface AwsEnvironmentData extends EnvironmentData { + readonly accountName?: string; environmentType: "AwsAccount"; organizationalData?: AwsOrganizationalDataUnion; + regions?: string[]; } // @public @@ -1129,6 +1131,13 @@ export interface BenchmarkReference { reference?: string; } +// @public +export interface BuiltInInfoType { + id?: string; + name?: string; + type?: string; +} + // @public export type BundleType = string; @@ -1174,11 +1183,14 @@ export type CloudName = string; // @public export interface CloudOffering { readonly description?: string; - offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps"; + offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" | "CspmMonitorGitLab" | "DefenderForDevOpsGitLab"; } // @public (undocumented) -export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering | InformationProtectionAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering | DefenderForContainersGcpOffering | CspmMonitorGithubOffering | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering | DefenderForDevOpsGithubOffering | DefenderForDevOpsAzureDevOpsOffering; +export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering | InformationProtectionAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering | DefenderForContainersGcpOffering | CspmMonitorGithubOffering | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering | DefenderForDevOpsGithubOffering | DefenderForDevOpsAzureDevOpsOffering | CspmMonitorGitLabOffering | DefenderForDevOpsGitLabOffering; + +// @public +export type Code = string; // @public export interface Compliance extends Resource { @@ -1417,6 +1429,11 @@ export interface CspmMonitorGithubOffering extends CloudOffering { offeringType: "CspmMonitorGithub"; } +// @public +export interface CspmMonitorGitLabOffering extends CloudOffering { + offeringType: "CspmMonitorGitLab"; +} + // @public export interface CustomAlertRule { readonly description?: string; @@ -1606,10 +1623,24 @@ export type DataSource = string; // @public export interface DefenderCspmAwsOffering extends CloudOffering { + databasesDspm?: DefenderCspmAwsOfferingDatabasesDspm; + dataSensitivityDiscovery?: DefenderCspmAwsOfferingDataSensitivityDiscovery; offeringType: "DefenderCspmAws"; vmScanners?: DefenderCspmAwsOfferingVmScanners; } +// @public +export interface DefenderCspmAwsOfferingDatabasesDspm { + cloudRoleArn?: string; + enabled?: boolean; +} + +// @public +export interface DefenderCspmAwsOfferingDataSensitivityDiscovery { + cloudRoleArn?: string; + enabled?: boolean; +} + // @public export interface DefenderCspmAwsOfferingVmScanners { configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; @@ -1633,12 +1664,26 @@ export interface DefenderCspmGcpOffering extends CloudOffering { // @public export interface DefenderFoDatabasesAwsOffering extends CloudOffering { arcAutoProvisioning?: DefenderFoDatabasesAwsOfferingArcAutoProvisioning; + databasesDspm?: DefenderFoDatabasesAwsOfferingDatabasesDspm; offeringType: "DefenderForDatabasesAws"; rds?: DefenderFoDatabasesAwsOfferingRds; } // @public export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning { + cloudRoleArn?: string; + configuration?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration; + enabled?: boolean; +} + +// @public +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration { + privateLinkScope?: string; + proxy?: string; +} + +// @public +export interface DefenderFoDatabasesAwsOfferingDatabasesDspm { cloudRoleArn?: string; enabled?: boolean; } @@ -1725,9 +1770,16 @@ export interface DefenderForDatabasesGcpOffering extends CloudOffering { // @public export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { + configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; enabled?: boolean; } +// @public +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration { + privateLinkScope?: string; + proxy?: string; +} + // @public export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning { serviceAccountEmailAddress?: string; @@ -1744,6 +1796,11 @@ export interface DefenderForDevOpsGithubOffering extends CloudOffering { offeringType: "DefenderForDevOpsGithub"; } +// @public +export interface DefenderForDevOpsGitLabOffering extends CloudOffering { + offeringType: "DefenderForDevOpsGitLab"; +} + // @public export interface DefenderForServersAwsOffering extends CloudOffering { arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning; @@ -1758,9 +1815,16 @@ export interface DefenderForServersAwsOffering extends CloudOffering { // @public export interface DefenderForServersAwsOfferingArcAutoProvisioning { cloudRoleArn?: string; + configuration?: DefenderForServersAwsOfferingArcAutoProvisioningConfiguration; enabled?: boolean; } +// @public +export interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration { + privateLinkScope?: string; + proxy?: string; +} + // @public export interface DefenderForServersAwsOfferingDefenderForServers { cloudRoleArn?: string; @@ -1811,13 +1875,21 @@ export interface DefenderForServersGcpOffering extends CloudOffering { offeringType: "DefenderForServersGcp"; subPlan?: DefenderForServersGcpOfferingSubPlan; vaAutoProvisioning?: DefenderForServersGcpOfferingVaAutoProvisioning; + vmScanners?: DefenderForServersGcpOfferingVmScanners; } // @public export interface DefenderForServersGcpOfferingArcAutoProvisioning { + configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration; enabled?: boolean; } +// @public +export interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration { + privateLinkScope?: string; + proxy?: string; +} + // @public export interface DefenderForServersGcpOfferingDefenderForServers { serviceAccountEmailAddress?: string; @@ -1846,6 +1918,20 @@ export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { type?: Type; } +// @public +export interface DefenderForServersGcpOfferingVmScanners { + configuration?: DefenderForServersGcpOfferingVmScannersConfiguration; + enabled?: boolean; +} + +// @public +export interface DefenderForServersGcpOfferingVmScannersConfiguration { + exclusionTags?: { + [propertyName: string]: string; + }; + scanningMode?: ScanningMode; +} + // @public export interface DenylistCustomAlertRule extends ListCustomAlertRule { denylistValues: string[]; @@ -1988,11 +2074,11 @@ export type EnforcementSupport = string; // @public export interface EnvironmentData { - environmentType: "AwsAccount" | "GcpProject" | "GithubScope" | "AzureDevOpsScope"; + environmentType: "AwsAccount" | "GcpProject" | "GithubScope" | "AzureDevOpsScope" | "GitlabScope"; } // @public (undocumented) -export type EnvironmentDataUnion = EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData; +export type EnvironmentDataUnion = EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData | GitlabScopeEnvironmentData; // @public export interface EnvironmentDetails { @@ -2063,6 +2149,16 @@ export type ExpandEnum = string; // @public export type ExportData = string; +// @public +export interface Extension { + additionalExtensionProperties?: { + [propertyName: string]: any; + }; + isEnabled: IsEnabled; + name: string; + readonly operationStatus?: OperationStatus; +} + // @public export interface ExternalSecuritySolution extends Resource, ExternalSecuritySolutionKindAutoGenerated, Location_2 { } @@ -2179,6 +2275,7 @@ export interface GcpOrganizationalDataMember extends GcpOrganizationalData { export interface GcpOrganizationalDataOrganization extends GcpOrganizationalData { excludedProjectNumbers?: string[]; organizationMembershipType: "Organization"; + readonly organizationName?: string; serviceAccountEmailAddress?: string; workloadIdentityProviderId?: string; } @@ -2189,6 +2286,7 @@ export type GcpOrganizationalDataUnion = GcpOrganizationalData | GcpOrganization // @public export interface GcpProjectDetails { projectId?: string; + readonly projectName?: string; projectNumber?: string; readonly workloadIdentityPoolId?: string; } @@ -2203,11 +2301,53 @@ export interface GcpProjectEnvironmentData extends EnvironmentData { // @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 GithubScopeEnvironmentData extends EnvironmentData { environmentType: "GithubScope"; } +// @public +export interface GitlabScopeEnvironmentData extends EnvironmentData { + environmentType: "GitlabScope"; +} + // @public export interface GovernanceAssignment extends Resource { additionalData?: GovernanceAssignmentAdditionalData; @@ -2494,6 +2634,13 @@ export interface HybridComputeSettingsProperties { servicePrincipal?: ServicePrincipalProperties; } +// @public +export interface Identity { + readonly principalId?: string; + readonly tenantId?: string; + type?: "SystemAssigned"; +} + // @public export type ImplementationEffort = string; @@ -2583,6 +2730,13 @@ export interface InformationType { recommendedLabelId?: string; } +// @public +export interface InfoType { + description?: string; + id?: string; + name?: string; +} + // @public export interface IngestionConnectionString { readonly location?: string; @@ -2932,6 +3086,9 @@ export interface IoTSeverityMetrics { medium?: number; } +// @public +export type IsEnabled = string; + // @public export interface Issue { issueAdditionalData?: { @@ -3260,7 +3417,14 @@ export enum KnownCloudName { Azure = "Azure", AzureDevOps = "AzureDevOps", GCP = "GCP", - Github = "Github" + Github = "Github", + GitLab = "GitLab" +} + +// @public +export enum KnownCode { + Failed = "Failed", + Succeeded = "Succeeded" } // @public @@ -3331,7 +3495,8 @@ export enum KnownEnvironmentType { AwsAccount = "AwsAccount", AzureDevOpsScope = "AzureDevOpsScope", GcpProject = "GcpProject", - GithubScope = "GithubScope" + GithubScope = "GithubScope", + GitlabScope = "GitlabScope" } // @public @@ -3445,6 +3610,12 @@ export enum KnownIntent { Unknown = "Unknown" } +// @public +export enum KnownIsEnabled { + False = "False", + True = "True" +} + // @public export enum KnownKind { Bundles = "Bundles" @@ -3457,12 +3628,21 @@ export enum KnownMinimalSeverity { Medium = "Medium" } +// @public +export enum KnownMipIntegrationStatus { + NoAutoLabelingRules = "noAutoLabelingRules", + NoConsent = "noConsent", + NoMipLabels = "noMipLabels", + Ok = "Ok" +} + // @public export enum KnownOfferingType { CspmMonitorAws = "CspmMonitorAws", CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps", CspmMonitorGcp = "CspmMonitorGcp", CspmMonitorGithub = "CspmMonitorGithub", + CspmMonitorGitLab = "CspmMonitorGitLab", DefenderCspmAws = "DefenderCspmAws", DefenderCspmGcp = "DefenderCspmGcp", DefenderForContainersAws = "DefenderForContainersAws", @@ -3471,6 +3651,7 @@ export enum KnownOfferingType { DefenderForDatabasesGcp = "DefenderForDatabasesGcp", DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps", DefenderForDevOpsGithub = "DefenderForDevOpsGithub", + DefenderForDevOpsGitLab = "DefenderForDevOpsGitLab", DefenderForServersAws = "DefenderForServersAws", DefenderForServersGcp = "DefenderForServersGcp", InformationProtectionAws = "InformationProtectionAws" @@ -3954,6 +4135,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"; @@ -4044,6 +4232,9 @@ export type MdeOnboardingsListResponse = MdeOnboardingDataList; // @public export type MinimalSeverity = string; +// @public +export type MipIntegrationStatus = string; + // @public export interface MqttC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "MqttC2DMessagesNotInAllowedRange"; @@ -4129,6 +4320,12 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption // @public export type OperationsListResponse = OperationList; +// @public +export interface OperationStatus { + code?: Code; + message?: string; +} + // @public export type Operator = string; @@ -4156,6 +4353,8 @@ export type PermissionProperty = string; // @public export interface Pricing extends Resource { readonly deprecated?: boolean; + readonly enablementTime?: Date; + extensions?: Extension[]; readonly freeTrialRemainingTime?: string; pricingTier?: PricingTier; readonly replacedBy?: string[]; @@ -4940,6 +5139,7 @@ export class SecurityCenter extends coreClient.ServiceClient { discoveredSecuritySolutions: DiscoveredSecuritySolutions; // (undocumented) externalSecuritySolutions: ExternalSecuritySolutions; + getSensitivitySettings(options?: GetSensitivitySettingsOptionalParams): Promise; // (undocumented) governanceAssignments: GovernanceAssignments; // (undocumented) @@ -4991,10 +5191,14 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) securityContacts: SecurityContacts; // (undocumented) + securityOperators: SecurityOperators; + // (undocumented) securitySolutions: SecuritySolutions; // (undocumented) securitySolutionsReferenceDataOperations: SecuritySolutionsReferenceDataOperations; // (undocumented) + sensitivitySettings: SensitivitySettings; + // (undocumented) serverVulnerabilityAssessmentOperations: ServerVulnerabilityAssessmentOperations; // (undocumented) settings: Settings; @@ -5014,6 +5218,7 @@ export class SecurityCenter extends coreClient.ServiceClient { tasks: Tasks; // (undocumented) topology: Topology; + updateSensitivitySettings(sensitivitySettings: UpdateSensitivitySettingsRequest, options?: UpdateSensitivitySettingsOptionalParams): Promise; // (undocumented) workspaceSettings: WorkspaceSettings; } @@ -5216,6 +5421,49 @@ export type SecurityContactsListResponse = SecurityContactList; // @public export type SecurityFamily = string; +// @public +export interface SecurityOperator extends Resource { + identity?: Identity; +} + +// @public +export interface SecurityOperatorList { + value: SecurityOperator[]; +} + +// @public +export interface SecurityOperators { + createOrUpdate(pricingName: string, securityOperatorName: string, options?: SecurityOperatorsCreateOrUpdateOptionalParams): Promise; + delete(pricingName: string, securityOperatorName: string, options?: SecurityOperatorsDeleteOptionalParams): Promise; + get(pricingName: string, securityOperatorName: string, options?: SecurityOperatorsGetOptionalParams): Promise; + list(pricingName: string, options?: SecurityOperatorsListOptionalParams): Promise; +} + +// @public +export interface SecurityOperatorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; + +// @public +export interface SecurityOperatorsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SecurityOperatorsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityOperatorsGetResponse = SecurityOperator; + +// @public +export interface SecurityOperatorsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityOperatorsListResponse = SecurityOperatorList; + // @public (undocumented) export interface SecuritySolution extends Resource, Location_2 { protectionStatus?: string; @@ -5348,6 +5596,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; @@ -5958,6 +6218,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 5bb9cae4bbf4..0b925a4aeb34 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -54,13 +54,16 @@ export type CloudOfferingUnion = | DefenderCspmAwsOffering | DefenderCspmGcpOffering | DefenderForDevOpsGithubOffering - | DefenderForDevOpsAzureDevOpsOffering; + | DefenderForDevOpsAzureDevOpsOffering + | CspmMonitorGitLabOffering + | DefenderForDevOpsGitLabOffering; export type EnvironmentDataUnion = | EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData - | AzureDevOpsScopeEnvironmentData; + | AzureDevOpsScopeEnvironmentData + | GitlabScopeEnvironmentData; export type AwsOrganizationalDataUnion = | AwsOrganizationalData | AwsOrganizationalDataMaster @@ -263,6 +266,35 @@ export interface PricingList { value: Pricing[]; } +/** A plan's extension properties */ +export interface Extension { + /** + * The extension name. Supported values are:

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

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

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

**ContainerRegistriesVulnerabilityAssessments** - Provides vulnerability management for images stored in your container registries. + * Available for CloudPosture and Containers plans. + */ + name: string; + /** Indicates whether the extension is enabled. */ + isEnabled: IsEnabled; + /** Property values associated with the extension. */ + additionalExtensionProperties?: { [propertyName: string]: any }; + /** + * Optional. A status describing the success/failure of the extension's enablement/disablement operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationStatus?: OperationStatus; +} + +/** A status describing the success/failure of the extension's enablement/disablement operation. */ +export interface OperationStatus { + /** The operation status code. */ + code?: Code; + /** Additional information regarding the success/failure of the operation. */ + message?: string; +} + /** List of device security groups */ export interface DeviceSecurityGroupList { /** List of device security group objects */ @@ -1488,6 +1520,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. */ @@ -1605,53 +1727,6 @@ export interface SoftwaresList { readonly nextLink?: string; } -/** List of security connectors response. */ -export interface SecurityConnectorsList { - /** The list of security connectors under the given scope. */ - value: SecurityConnector[]; - /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The security offering details */ -export interface CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: - | "CspmMonitorAws" - | "DefenderForContainersAws" - | "DefenderForServersAws" - | "DefenderForDatabasesAws" - | "InformationProtectionAws" - | "CspmMonitorGcp" - | "DefenderForServersGcp" - | "DefenderForDatabasesGcp" - | "DefenderForContainersGcp" - | "CspmMonitorGithub" - | "CspmMonitorAzureDevOps" - | "DefenderCspmAws" - | "DefenderCspmGcp" - | "DefenderForDevOpsGithub" - | "DefenderForDevOpsAzureDevOps"; - /** - * The offering description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - -/** The security connector environment data. */ -export interface EnvironmentData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - environmentType: - | "AwsAccount" - | "GcpProject" - | "GithubScope" - | "AzureDevOpsScope"; -} - /** Page of a governance rules list */ export interface GovernanceRuleList { /** @@ -2117,6 +2192,78 @@ export interface RulesResultsInput { results?: { [propertyName: string]: string[][] }; } +/** List of security connectors response. */ +export interface SecurityConnectorsList { + /** The list of security connectors under the given scope. */ + value: SecurityConnector[]; + /** + * The URI to fetch the next page. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The security offering details */ +export interface CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: + | "CspmMonitorAws" + | "DefenderForContainersAws" + | "DefenderForServersAws" + | "DefenderForDatabasesAws" + | "InformationProtectionAws" + | "CspmMonitorGcp" + | "DefenderForServersGcp" + | "DefenderForDatabasesGcp" + | "DefenderForContainersGcp" + | "CspmMonitorGithub" + | "CspmMonitorAzureDevOps" + | "DefenderCspmAws" + | "DefenderCspmGcp" + | "DefenderForDevOpsGithub" + | "DefenderForDevOpsAzureDevOps" + | "CspmMonitorGitLab" + | "DefenderForDevOpsGitLab"; + /** + * The offering description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; +} + +/** The security connector environment data. */ +export interface EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: + | "AwsAccount" + | "GcpProject" + | "GithubScope" + | "AzureDevOpsScope" + | "GitlabScope"; +} + +/** List of SecurityOperator response. */ +export interface SecurityOperatorList { + /** List of SecurityOperator configurations */ + value: SecurityOperator[]; +} + +/** Identity for the resource. */ +export interface Identity { + /** + * The principal ID of resource identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** The identity type. */ + type?: "SystemAssigned"; +} + /** CVSS details */ export interface Cvss { /** @@ -2195,7 +2342,27 @@ export interface SecureScoreControlScore { readonly percentage?: number; } -/** The awsOrganization data */ +/** 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"; @@ -2218,6 +2385,11 @@ export interface GcpProjectDetails { * 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 */ @@ -2274,6 +2446,16 @@ export interface DefenderForServersAwsOfferingArcAutoProvisioning { 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 */ @@ -2316,7 +2498,7 @@ export interface DefenderForServersAwsOfferingVmScanners { export interface DefenderForServersAwsOfferingVmScannersConfiguration { /** The cloud role ARN in AWS for this feature */ cloudRoleArn?: string; - /** The scanning mode for the vm scan. */ + /** The scanning mode for the VM scan. */ scanningMode?: ScanningMode; /** VM tags that indicates that VM should not be scanned */ exclusionTags?: { [propertyName: string]: string }; @@ -2328,6 +2510,16 @@ export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning { enabled?: boolean; /** The cloud role ARN in AWS for this feature */ cloudRoleArn?: string; + /** Configuration for servers Arc auto provisioning */ + configuration?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration; +} + +/** Configuration for servers Arc auto provisioning */ +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration { + /** Optional http proxy endpoint to use for the Arc agent */ + proxy?: string; + /** Optional Arc private link scope resource id to link the Arc agent */ + privateLinkScope?: string; } /** The RDS configuration */ @@ -2338,6 +2530,14 @@ export interface DefenderFoDatabasesAwsOfferingRds { cloudRoleArn?: string; } +/** The databases data security posture management (DSPM) configuration */ +export interface DefenderFoDatabasesAwsOfferingDatabasesDspm { + /** Is databases data security posture management (DSPM) protection enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + /** The native cloud connection configuration */ export interface InformationProtectionAwsOfferingInformationProtection { /** The cloud role ARN in AWS for this feature */ @@ -2364,6 +2564,16 @@ export interface DefenderForServersGcpOfferingDefenderForServers { 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 */ @@ -2394,10 +2604,36 @@ export interface DefenderForServersGcpOfferingSubPlan { type?: SubPlan; } +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderForServersGcpOfferingVmScanners { + /** Is Microsoft Defender for Server VM scanning enabled */ + enabled?: boolean; + /** configuration for Microsoft Defender for Server VM scanning */ + configuration?: DefenderForServersGcpOfferingVmScannersConfiguration; +} + +/** configuration for Microsoft Defender for Server VM scanning */ +export interface DefenderForServersGcpOfferingVmScannersConfiguration { + /** The scanning mode for the VM scan. */ + scanningMode?: ScanningMode; + /** VM tags that indicate that VM should not be scanned */ + exclusionTags?: { [propertyName: string]: string }; +} + /** The ARC autoprovisioning configuration */ export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { /** Is arc auto provisioning enabled */ enabled?: boolean; + /** Configuration for servers Arc auto provisioning */ + configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; +} + +/** Configuration for servers Arc auto provisioning */ +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration { + /** Optional http proxy endpoint to use for the Arc agent */ + proxy?: string; + /** Optional Arc private link scope resource id to link the Arc agent */ + privateLinkScope?: string; } /** The native cloud connection configuration */ @@ -2436,30 +2672,26 @@ export interface DefenderCspmAwsOfferingVmScanners { export interface DefenderCspmAwsOfferingVmScannersConfiguration { /** The cloud role ARN in AWS for this feature */ cloudRoleArn?: string; - /** The scanning mode for the vm scan. */ + /** The scanning mode for the VM scan. */ scanningMode?: ScanningMode; /** VM tags that indicates that VM should not be scanned */ exclusionTags?: { [propertyName: string]: 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 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; } -/** 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 databases DSPM configuration */ +export interface DefenderCspmAwsOfferingDatabasesDspm { + /** Is databases DSPM 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 */ @@ -2531,9 +2763,9 @@ export interface ComplianceResult extends Resource { readonly resourceStatus?: ResourceStatus; } -/** Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */ +/** Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */ export interface Pricing extends Resource { - /** The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */ + /** The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */ pricingTier?: PricingTier; /** The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. */ subPlan?: string; @@ -2542,6 +2774,11 @@ export interface Pricing extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly freeTrialRemainingTime?: string; + /** + * Optional. If `pricingTier` is `Standard` then this property holds the date of the last time the `pricingTier` was set to `Standard`, when available (e.g 2023-03-01T12:42:42.1921106Z). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly enablementTime?: Date; /** * Optional. True if the plan is deprecated. If there are replacing plans they will appear in `replacedBy` property * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2552,6 +2789,8 @@ export interface Pricing extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replacedBy?: string[]; + /** Optional. List of extensions offered under a plan. */ + extensions?: Extension[]; } /** The Advanced Threat Protection resource. */ @@ -3615,6 +3854,12 @@ export interface RuleResults extends Resource { properties?: RuleResultsProperties; } +/** Security operator under a given subscription and pricing */ +export interface SecurityOperator extends Resource { + /** Identity for the resource. */ + identity?: Identity; +} + /** Security assessment metadata */ export interface SecurityAssessmentMetadata extends Resource { /** User friendly display name of the assessment */ @@ -4057,6 +4302,8 @@ export interface DefenderFoDatabasesAwsOffering extends CloudOffering { arcAutoProvisioning?: DefenderFoDatabasesAwsOfferingArcAutoProvisioning; /** The RDS configuration */ rds?: DefenderFoDatabasesAwsOfferingRds; + /** The databases data security posture management (DSPM) configuration */ + databasesDspm?: DefenderFoDatabasesAwsOfferingDatabasesDspm; } /** The information protection for AWS offering */ @@ -4089,6 +4336,8 @@ export interface DefenderForServersGcpOffering extends CloudOffering { mdeAutoProvisioning?: DefenderForServersGcpOfferingMdeAutoProvisioning; /** configuration for the servers offering subPlan */ subPlan?: DefenderForServersGcpOfferingSubPlan; + /** The Microsoft Defender for Server VM scanning configuration */ + vmScanners?: DefenderForServersGcpOfferingVmScanners; } /** The Defender for Databases GCP offering configurations */ @@ -4129,12 +4378,16 @@ export interface CspmMonitorAzureDevOpsOffering extends CloudOffering { offeringType: "CspmMonitorAzureDevOps"; } -/** The CSPM P1 for Aws offering */ +/** The CSPM P1 for AWS offering */ export interface DefenderCspmAwsOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ offeringType: "DefenderCspmAws"; /** The Microsoft Defender for Server VM scanning configuration */ vmScanners?: DefenderCspmAwsOfferingVmScanners; + /** The Microsoft Defender Data Sensitivity discovery configuration */ + dataSensitivityDiscovery?: DefenderCspmAwsOfferingDataSensitivityDiscovery; + /** The databases DSPM configuration */ + databasesDspm?: DefenderCspmAwsOfferingDatabasesDspm; } /** The CSPM P1 for GCP offering */ @@ -4155,12 +4408,31 @@ export interface DefenderForDevOpsAzureDevOpsOffering extends CloudOffering { offeringType: "DefenderForDevOpsAzureDevOps"; } -/** The aws connector environment data */ +/** The CSPM (Cloud security posture management) monitoring for gitlab offering */ +export interface CspmMonitorGitLabOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "CspmMonitorGitLab"; +} + +/** The Defender for DevOps for Gitlab offering */ +export interface DefenderForDevOpsGitLabOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderForDevOpsGitLab"; +} + +/** The AWS connector environment data */ export interface AwsEnvironmentData extends EnvironmentData { /** Polymorphic discriminator, which specifies the different types this object can be */ environmentType: "AwsAccount"; /** The AWS account's organizational data */ organizationalData?: AwsOrganizationalDataUnion; + /** list of regions to scan */ + regions?: string[]; + /** + * The AWS account name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly accountName?: string; } /** The GCP project connector environment data */ @@ -4185,6 +4457,12 @@ export interface AzureDevOpsScopeEnvironmentData extends EnvironmentData { environmentType: "AzureDevOpsScope"; } +/** The GitLab scope connector's environment data */ +export interface GitlabScopeEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "GitlabScope"; +} + /** The external security solution properties for CEF solutions */ export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { @@ -4204,7 +4482,7 @@ export interface AadSolutionProperties extends ExternalSecuritySolutionProperties, AadConnectivityStateAutoGenerated {} -/** The awsOrganization data for the master account */ +/** The AWS organization data for the master account */ export interface AwsOrganizationalDataMaster extends AwsOrganizationalData { /** Polymorphic discriminator, which specifies the different types this object can be */ organizationMembershipType: "Organization"; @@ -4214,7 +4492,7 @@ export interface AwsOrganizationalDataMaster extends AwsOrganizationalData { excludedAccountIds?: string[]; } -/** The awsOrganization data for the member account */ +/** The AWS organization data for the member account */ export interface AwsOrganizationalDataMember extends AwsOrganizationalData { /** Polymorphic discriminator, which specifies the different types this object can be */ organizationMembershipType: "Member"; @@ -4233,6 +4511,11 @@ export interface GcpOrganizationalDataOrganization serviceAccountEmailAddress?: string; /** The GCP workload identity provider id which represents the permissions required to auto provision security connectors */ workloadIdentityProviderId?: string; + /** + * GCP organization name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly organizationName?: string; } /** The gcpOrganization data for the member account */ @@ -4630,6 +4913,42 @@ export enum KnownPricingTier { */ export type PricingTier = string; +/** Known values of {@link IsEnabled} that the service accepts. */ +export enum KnownIsEnabled { + /** Indicates the extension is enabled */ + True = "True", + /** Indicates the extension is disabled */ + False = "False" +} + +/** + * Defines values for IsEnabled. \ + * {@link KnownIsEnabled} can be used interchangeably with IsEnabled, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True**: Indicates the extension is enabled \ + * **False**: Indicates the extension is disabled + */ +export type IsEnabled = string; + +/** Known values of {@link Code} that the service accepts. */ +export enum KnownCode { + /** Extension was created\/updated successfully. */ + Succeeded = "Succeeded", + /** Extension was not created\/updated successfully. See operation status message for more details. */ + Failed = "Failed" +} + +/** + * Defines values for Code. \ + * {@link KnownCode} can be used interchangeably with Code, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Extension was created\/updated successfully. \ + * **Failed**: Extension was not created\/updated successfully. See operation status message for more details. + */ +export type Code = string; + /** Known values of {@link ValueType} that the service accepts. */ export enum KnownValueType { /** An IP range in CIDR format (e.g. '192.168.0.1\/8'). */ @@ -6271,6 +6590,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 */ @@ -6487,114 +6830,6 @@ export enum KnownEndOfSupportStatus { */ export type EndOfSupportStatus = string; -/** Known values of {@link CloudName} that the service accepts. */ -export enum KnownCloudName { - /** Azure */ - Azure = "Azure", - /** AWS */ - AWS = "AWS", - /** GCP */ - GCP = "GCP", - /** Github */ - Github = "Github", - /** AzureDevOps */ - AzureDevOps = "AzureDevOps" -} - -/** - * Defines values for CloudName. \ - * {@link KnownCloudName} can be used interchangeably with CloudName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Azure** \ - * **AWS** \ - * **GCP** \ - * **Github** \ - * **AzureDevOps** - */ -export type CloudName = string; - -/** Known values of {@link OfferingType} that the service accepts. */ -export enum KnownOfferingType { - /** CspmMonitorAws */ - CspmMonitorAws = "CspmMonitorAws", - /** DefenderForContainersAws */ - DefenderForContainersAws = "DefenderForContainersAws", - /** DefenderForServersAws */ - DefenderForServersAws = "DefenderForServersAws", - /** DefenderForDatabasesAws */ - DefenderForDatabasesAws = "DefenderForDatabasesAws", - /** InformationProtectionAws */ - InformationProtectionAws = "InformationProtectionAws", - /** CspmMonitorGcp */ - CspmMonitorGcp = "CspmMonitorGcp", - /** CspmMonitorGithub */ - CspmMonitorGithub = "CspmMonitorGithub", - /** CspmMonitorAzureDevOps */ - CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps", - /** DefenderForServersGcp */ - DefenderForServersGcp = "DefenderForServersGcp", - /** DefenderForContainersGcp */ - DefenderForContainersGcp = "DefenderForContainersGcp", - /** DefenderForDatabasesGcp */ - DefenderForDatabasesGcp = "DefenderForDatabasesGcp", - /** DefenderCspmAws */ - DefenderCspmAws = "DefenderCspmAws", - /** DefenderCspmGcp */ - DefenderCspmGcp = "DefenderCspmGcp", - /** DefenderForDevOpsGithub */ - DefenderForDevOpsGithub = "DefenderForDevOpsGithub", - /** DefenderForDevOpsAzureDevOps */ - DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps" -} - -/** - * Defines values for OfferingType. \ - * {@link KnownOfferingType} can be used interchangeably with OfferingType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CspmMonitorAws** \ - * **DefenderForContainersAws** \ - * **DefenderForServersAws** \ - * **DefenderForDatabasesAws** \ - * **InformationProtectionAws** \ - * **CspmMonitorGcp** \ - * **CspmMonitorGithub** \ - * **CspmMonitorAzureDevOps** \ - * **DefenderForServersGcp** \ - * **DefenderForContainersGcp** \ - * **DefenderForDatabasesGcp** \ - * **DefenderCspmAws** \ - * **DefenderCspmGcp** \ - * **DefenderForDevOpsGithub** \ - * **DefenderForDevOpsAzureDevOps** - */ -export type OfferingType = string; - -/** Known values of {@link EnvironmentType} that the service accepts. */ -export enum KnownEnvironmentType { - /** AwsAccount */ - AwsAccount = "AwsAccount", - /** GcpProject */ - GcpProject = "GcpProject", - /** GithubScope */ - GithubScope = "GithubScope", - /** AzureDevOpsScope */ - AzureDevOpsScope = "AzureDevOpsScope" -} - -/** - * 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** - */ -export type EnvironmentType = string; - /** Known values of {@link GovernanceRuleType} that the service accepts. */ export enum KnownGovernanceRuleType { /** The source of the rule type definition is integrated */ @@ -6841,6 +7076,126 @@ export enum KnownRuleType { */ export type RuleType = string; +/** Known values of {@link CloudName} that the service accepts. */ +export enum KnownCloudName { + /** Azure */ + Azure = "Azure", + /** AWS */ + AWS = "AWS", + /** GCP */ + GCP = "GCP", + /** Github */ + Github = "Github", + /** AzureDevOps */ + AzureDevOps = "AzureDevOps", + /** GitLab */ + GitLab = "GitLab" +} + +/** + * Defines values for CloudName. \ + * {@link KnownCloudName} can be used interchangeably with CloudName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Azure** \ + * **AWS** \ + * **GCP** \ + * **Github** \ + * **AzureDevOps** \ + * **GitLab** + */ +export type CloudName = string; + +/** Known values of {@link OfferingType} that the service accepts. */ +export enum KnownOfferingType { + /** CspmMonitorAws */ + CspmMonitorAws = "CspmMonitorAws", + /** DefenderForContainersAws */ + DefenderForContainersAws = "DefenderForContainersAws", + /** DefenderForServersAws */ + DefenderForServersAws = "DefenderForServersAws", + /** DefenderForDatabasesAws */ + DefenderForDatabasesAws = "DefenderForDatabasesAws", + /** InformationProtectionAws */ + InformationProtectionAws = "InformationProtectionAws", + /** CspmMonitorGcp */ + CspmMonitorGcp = "CspmMonitorGcp", + /** CspmMonitorGithub */ + CspmMonitorGithub = "CspmMonitorGithub", + /** CspmMonitorAzureDevOps */ + CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps", + /** DefenderForServersGcp */ + DefenderForServersGcp = "DefenderForServersGcp", + /** DefenderForContainersGcp */ + DefenderForContainersGcp = "DefenderForContainersGcp", + /** DefenderForDatabasesGcp */ + DefenderForDatabasesGcp = "DefenderForDatabasesGcp", + /** DefenderCspmAws */ + DefenderCspmAws = "DefenderCspmAws", + /** DefenderCspmGcp */ + DefenderCspmGcp = "DefenderCspmGcp", + /** DefenderForDevOpsGithub */ + DefenderForDevOpsGithub = "DefenderForDevOpsGithub", + /** DefenderForDevOpsAzureDevOps */ + DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps", + /** CspmMonitorGitLab */ + CspmMonitorGitLab = "CspmMonitorGitLab", + /** DefenderForDevOpsGitLab */ + DefenderForDevOpsGitLab = "DefenderForDevOpsGitLab" +} + +/** + * Defines values for OfferingType. \ + * {@link KnownOfferingType} can be used interchangeably with OfferingType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CspmMonitorAws** \ + * **DefenderForContainersAws** \ + * **DefenderForServersAws** \ + * **DefenderForDatabasesAws** \ + * **InformationProtectionAws** \ + * **CspmMonitorGcp** \ + * **CspmMonitorGithub** \ + * **CspmMonitorAzureDevOps** \ + * **DefenderForServersGcp** \ + * **DefenderForContainersGcp** \ + * **DefenderForDatabasesGcp** \ + * **DefenderCspmAws** \ + * **DefenderCspmGcp** \ + * **DefenderForDevOpsGithub** \ + * **DefenderForDevOpsAzureDevOps** \ + * **CspmMonitorGitLab** \ + * **DefenderForDevOpsGitLab** + */ +export type OfferingType = string; + +/** Known values of {@link EnvironmentType} that the service accepts. */ +export enum KnownEnvironmentType { + /** AwsAccount */ + AwsAccount = "AwsAccount", + /** GcpProject */ + GcpProject = "GcpProject", + /** GithubScope */ + GithubScope = "GithubScope", + /** AzureDevOpsScope */ + AzureDevOpsScope = "AzureDevOpsScope", + /** GitlabScope */ + GitlabScope = "GitlabScope" +} + +/** + * Defines values for EnvironmentType. \ + * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AwsAccount** \ + * **GcpProject** \ + * **GithubScope** \ + * **AzureDevOpsScope** \ + * **GitlabScope** + */ +export type EnvironmentType = string; + /** Known values of {@link AadConnectivityState} that the service accepts. */ export enum KnownAadConnectivityState { /** Discovered */ @@ -6901,6 +7256,45 @@ export enum KnownBundleType { */ 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 */ @@ -6969,45 +7363,6 @@ export enum KnownScanningMode { * **Default** */ export type ScanningMode = 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; /** Defines values for Rank. */ export type Rank = "None" | "Low" | "Medium" | "High" | "Critical"; /** Defines values for RuleState. */ @@ -8331,6 +8686,27 @@ export interface ConnectorsListNextOptionalParams /** Contains response data for the listNext operation. */ export type ConnectorsListNextResponse = ConnectorSettingList; +/** Optional parameters. */ +export interface UpdateSensitivitySettingsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the updateSensitivitySettings operation. */ +export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; + +/** Optional parameters. */ +export interface GetSensitivitySettingsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getSensitivitySettings operation. */ +export type GetSensitivitySettingsOperationResponse = GetSensitivitySettingsResponse; + +/** Optional parameters. */ +export interface SensitivitySettingsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SensitivitySettingsListResponse = GetSensitivitySettingsListResponse; + /** Optional parameters. */ export interface AlertsListOptionalParams extends coreClient.OperationOptions {} @@ -8550,59 +8926,6 @@ export interface SoftwareInventoriesListBySubscriptionNextOptionalParams /** Contains response data for the listBySubscriptionNext operation. */ export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList; -/** Optional parameters. */ -export interface SecurityConnectorsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type SecurityConnectorsListResponse = SecurityConnectorsList; - -/** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type SecurityConnectorsListByResourceGroupResponse = SecurityConnectorsList; - -/** Optional parameters. */ -export interface SecurityConnectorsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SecurityConnectorsGetResponse = SecurityConnector; - -/** Optional parameters. */ -export interface SecurityConnectorsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; - -/** Optional parameters. */ -export interface SecurityConnectorsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type SecurityConnectorsUpdateResponse = SecurityConnector; - -/** Optional parameters. */ -export interface SecurityConnectorsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface SecurityConnectorsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type SecurityConnectorsListNextResponse = SecurityConnectorsList; - -/** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type SecurityConnectorsListByResourceGroupNextResponse = SecurityConnectorsList; - /** Optional parameters. */ export interface GovernanceRulesListOptionalParams extends coreClient.OperationOptions {} @@ -8876,6 +9199,84 @@ export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams /** Contains response data for the add operation. */ export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults; +/** Optional parameters. */ +export interface SecurityConnectorsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SecurityConnectorsListResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface SecurityConnectorsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type SecurityConnectorsListByResourceGroupResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface SecurityConnectorsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SecurityConnectorsGetResponse = SecurityConnector; + +/** Optional parameters. */ +export interface SecurityConnectorsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; + +/** Optional parameters. */ +export interface SecurityConnectorsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type SecurityConnectorsUpdateResponse = SecurityConnector; + +/** Optional parameters. */ +export interface SecurityConnectorsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SecurityConnectorsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SecurityConnectorsListNextResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface SecurityConnectorsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type SecurityConnectorsListByResourceGroupNextResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface SecurityOperatorsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SecurityOperatorsListResponse = SecurityOperatorList; + +/** Optional parameters. */ +export interface SecurityOperatorsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SecurityOperatorsGetResponse = SecurityOperator; + +/** Optional parameters. */ +export interface SecurityOperatorsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; + +/** Optional parameters. */ +export interface SecurityOperatorsDeleteOptionalParams + extends coreClient.OperationOptions {} + /** 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 bca7373c89b6..c48f2f960259 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -362,6 +362,64 @@ export const PricingList: coreClient.CompositeMapper = { } }; +export const Extension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Extension", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + isEnabled: { + serializedName: "isEnabled", + required: true, + type: { + name: "String" + } + }, + additionalExtensionProperties: { + serializedName: "additionalExtensionProperties", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "Composite", + className: "OperationStatus" + } + } + } + } +}; + +export const OperationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationStatus", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + export const DeviceSecurityGroupList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3551,238 +3609,239 @@ export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { } }; -export const AlertList: coreClient.CompositeMapper = { +export const UpdateSensitivitySettingsRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertList", + className: "UpdateSensitivitySettingsRequest", modelProperties: { - value: { - serializedName: "value", + sensitiveInfoTypesIds: { + serializedName: "sensitiveInfoTypesIds", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Alert" + name: "Uuid" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + sensitivityThresholdLabelOrder: { + serializedName: "sensitivityThresholdLabelOrder", type: { - name: "String" + name: "Number" + } + }, + sensitivityThresholdLabelId: { + serializedName: "sensitivityThresholdLabelId", + type: { + name: "Uuid" } } } } }; -export const ResourceIdentifier: coreClient.CompositeMapper = { +export const GetSensitivitySettingsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentifier", - uberParent: "ResourceIdentifier", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, + className: "GetSensitivitySettingsResponse", modelProperties: { - type: { - serializedName: "type", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const AlertEntity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AlertEntity", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { + }, type: { serializedName: "type", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AlertPropertiesSupportingEvidence", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - type: { - serializedName: "type", + }, + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const AlertSimulatorRequestBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AlertSimulatorRequestBody", - modelProperties: { + }, properties: { serializedName: "properties", type: { name: "Composite", - className: "AlertSimulatorRequestProperties" + className: "GetSensitivitySettingsResponseProperties" } } } } }; -export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { - serializedName: "AlertSimulatorRequestProperties", +export const GetSensitivitySettingsResponseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertSimulatorRequestProperties", - uberParent: "AlertSimulatorRequestProperties", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, + className: "GetSensitivitySettingsResponseProperties", modelProperties: { - kind: { - serializedName: "kind", - required: true, + sensitiveInfoTypesIds: { + serializedName: "sensitiveInfoTypesIds", type: { - name: "String" + 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 SettingsList: coreClient.CompositeMapper = { +export const GetSensitivitySettingsResponsePropertiesMipInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SettingsList", + className: "GetSensitivitySettingsResponsePropertiesMipInformation", modelProperties: { - value: { - serializedName: "value", + mipIntegrationStatus: { + serializedName: "mipIntegrationStatus", + type: { + name: "String" + } + }, + labels: { + serializedName: "labels", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Setting" + className: "Label" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const IngestionSettingList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IngestionSettingList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + customInfoTypes: { + serializedName: "customInfoTypes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IngestionSetting" + className: "InfoType" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + builtInInfoTypes: { + serializedName: "builtInInfoTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuiltInInfoType" + } + } } } } } }; -export const IngestionSettingToken: coreClient.CompositeMapper = { +export const Label: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IngestionSettingToken", + className: "Label", modelProperties: { - token: { - serializedName: "token", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } + }, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } } } } }; -export const ConnectionStrings: coreClient.CompositeMapper = { +export const InfoType: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionStrings", + className: "InfoType", modelProperties: { - value: { - serializedName: "value", - required: true, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IngestionConnectionString" - } - } + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + description: { + serializedName: "description", + type: { + name: "String" } } } } }; -export const IngestionConnectionString: coreClient.CompositeMapper = { +export const BuiltInInfoType: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IngestionConnectionString", + className: "BuiltInInfoType", modelProperties: { - location: { - serializedName: "location", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", type: { name: "String" } @@ -3791,10 +3850,10 @@ export const IngestionConnectionString: coreClient.CompositeMapper = { } }; -export const SoftwaresList: coreClient.CompositeMapper = { +export const GetSensitivitySettingsListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwaresList", + className: "GetSensitivitySettingsListResponse", modelProperties: { value: { serializedName: "value", @@ -3803,11 +3862,32 @@ export const SoftwaresList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Software" + className: "GetSensitivitySettingsResponse" } } } - }, + } + } + } +}; + +export const AlertList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Alert" + } + } + } + }, nextLink: { serializedName: "nextLink", readOnly: true, @@ -3819,20 +3899,113 @@ export const SoftwaresList: coreClient.CompositeMapper = { } }; -export const SecurityConnectorsList: coreClient.CompositeMapper = { +export const ResourceIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityConnectorsList", + className: "ResourceIdentifier", + uberParent: "ResourceIdentifier", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AlertEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertEntity", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertPropertiesSupportingEvidence", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AlertSimulatorRequestBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertSimulatorRequestBody", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AlertSimulatorRequestProperties" + } + } + } + } +}; + +export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { + serializedName: "AlertSimulatorRequestProperties", + type: { + name: "Composite", + className: "AlertSimulatorRequestProperties", + uberParent: "AlertSimulatorRequestProperties", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + modelProperties: { + kind: { + serializedName: "kind", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SettingsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SettingsList", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityConnector" + className: "Setting" } } } @@ -3848,25 +4021,87 @@ export const SecurityConnectorsList: coreClient.CompositeMapper = { } }; -export const CloudOffering: coreClient.CompositeMapper = { +export const IngestionSettingList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: { - serializedName: "offeringType", - clientName: "offeringType" - }, + className: "IngestionSettingList", modelProperties: { - offeringType: { - serializedName: "offeringType", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IngestionSetting" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const IngestionSettingToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IngestionSettingToken", + modelProperties: { + token: { + serializedName: "token", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionStrings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionStrings", + modelProperties: { + value: { + serializedName: "value", required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IngestionConnectionString" + } + } + } + } + } + } +}; + +export const IngestionConnectionString: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IngestionConnectionString", + modelProperties: { + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", + value: { + serializedName: "value", readOnly: true, type: { name: "String" @@ -3876,19 +4111,26 @@ export const CloudOffering: coreClient.CompositeMapper = { } }; -export const EnvironmentData: coreClient.CompositeMapper = { +export const SoftwaresList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentData", - uberParent: "EnvironmentData", - polymorphicDiscriminator: { - serializedName: "environmentType", - clientName: "environmentType" - }, + className: "SoftwaresList", modelProperties: { - environmentType: { - serializedName: "environmentType", - required: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Software" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -5122,6 +5364,137 @@ export const RulesResultsInput: 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 Cvss: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5285,6 +5658,60 @@ export const SecureScoreControlScore: coreClient.CompositeMapper = { } }; +export const Condition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Condition", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationCondition", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", + type: { + name: "String" + } + } + } + } +}; + export const AwsOrganizationalData: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5350,6 +5777,13 @@ export const GcpProjectDetails: coreClient.CompositeMapper = { type: { name: "String" } + }, + projectName: { + serializedName: "projectName", + readOnly: true, + type: { + name: "String" + } } } } @@ -5488,8 +5922,37 @@ export const DefenderForServersAwsOfferingArcAutoProvisioning: coreClient.Compos name: "Boolean" } }, - cloudRoleArn: { - serializedName: "cloudRoleArn", + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String" + } + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: + "DefenderForServersAwsOfferingArcAutoProvisioningConfiguration" + } + } + } + } +}; + +export const DefenderForServersAwsOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingArcAutoProvisioningConfiguration", + modelProperties: { + proxy: { + serializedName: "proxy", + type: { + name: "String" + } + }, + privateLinkScope: { + serializedName: "privateLinkScope", type: { name: "String" } @@ -5639,6 +6102,35 @@ export const DefenderFoDatabasesAwsOfferingArcAutoProvisioning: coreClient.Compo type: { name: "String" } + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: + "DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration" + } + } + } + } +}; + +export const DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration", + modelProperties: { + proxy: { + serializedName: "proxy", + type: { + name: "String" + } + }, + privateLinkScope: { + serializedName: "privateLinkScope", + type: { + name: "String" + } } } } @@ -5665,6 +6157,27 @@ export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { } }; +export const DefenderFoDatabasesAwsOfferingDatabasesDspm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingDatabasesDspm", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String" + } + } + } + } +}; + export const InformationProtectionAwsOfferingInformationProtection: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5732,6 +6245,35 @@ export const DefenderForServersGcpOfferingArcAutoProvisioning: coreClient.Compos type: { name: "Boolean" } + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: + "DefenderForServersGcpOfferingArcAutoProvisioningConfiguration" + } + } + } + } +}; + +export const DefenderForServersGcpOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingArcAutoProvisioningConfiguration", + modelProperties: { + proxy: { + serializedName: "proxy", + type: { + name: "String" + } + }, + privateLinkScope: { + serializedName: "privateLinkScope", + type: { + name: "String" + } } } } @@ -5812,6 +6354,50 @@ export const DefenderForServersGcpOfferingSubPlan: coreClient.CompositeMapper = } }; +export const DefenderForServersGcpOfferingVmScanners: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVmScanners", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVmScannersConfiguration" + } + } + } + } +}; + +export const DefenderForServersGcpOfferingVmScannersConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVmScannersConfiguration", + modelProperties: { + scanningMode: { + serializedName: "scanningMode", + type: { + name: "String" + } + }, + exclusionTags: { + serializedName: "exclusionTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + export const DefenderForDatabasesGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5822,6 +6408,36 @@ export const DefenderForDatabasesGcpOfferingArcAutoProvisioning: coreClient.Comp type: { name: "Boolean" } + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: + "DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration" + } + } + } + } +}; + +export const DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration", + modelProperties: { + proxy: { + serializedName: "proxy", + type: { + name: "String" + } + }, + privateLinkScope: { + serializedName: "privateLinkScope", + type: { + name: "String" + } } } } @@ -5942,25 +6558,19 @@ export const DefenderCspmAwsOfferingVmScannersConfiguration: coreClient.Composit } }; -export const Condition: coreClient.CompositeMapper = { +export const DefenderCspmAwsOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Condition", + className: "DefenderCspmAwsOfferingDataSensitivityDiscovery", modelProperties: { - property: { - serializedName: "property", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - operator: { - serializedName: "operator", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { name: "String" } @@ -5969,25 +6579,19 @@ export const Condition: coreClient.CompositeMapper = { } }; -export const ApplicationCondition: coreClient.CompositeMapper = { +export const DefenderCspmAwsOfferingDatabasesDspm: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationCondition", + className: "DefenderCspmAwsOfferingDatabasesDspm", modelProperties: { - property: { - serializedName: "property", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - operator: { - serializedName: "operator", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { name: "String" } @@ -6194,6 +6798,13 @@ export const Pricing: coreClient.CompositeMapper = { name: "TimeSpan" } }, + enablementTime: { + serializedName: "properties.enablementTime", + readOnly: true, + type: { + name: "DateTime" + } + }, deprecated: { serializedName: "properties.deprecated", readOnly: true, @@ -6212,6 +6823,18 @@ export const Pricing: coreClient.CompositeMapper = { } } } + }, + extensions: { + serializedName: "properties.extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Extension" + } + } + } } } } @@ -8742,6 +9365,23 @@ export const RuleResults: coreClient.CompositeMapper = { } }; +export const SecurityOperator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityOperator", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + } + } + } +}; + export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9779,6 +10419,13 @@ export const DefenderFoDatabasesAwsOffering: coreClient.CompositeMapper = { name: "Composite", className: "DefenderFoDatabasesAwsOfferingRds" } + }, + databasesDspm: { + serializedName: "databasesDspm", + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingDatabasesDspm" + } } } } @@ -9867,6 +10514,13 @@ export const DefenderForServersGcpOffering: coreClient.CompositeMapper = { name: "Composite", className: "DefenderForServersGcpOfferingSubPlan" } + }, + vmScanners: { + serializedName: "vmScanners", + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVmScanners" + } } } } @@ -9987,6 +10641,20 @@ export const DefenderCspmAwsOffering: coreClient.CompositeMapper = { name: "Composite", className: "DefenderCspmAwsOfferingVmScanners" } + }, + dataSensitivityDiscovery: { + serializedName: "dataSensitivityDiscovery", + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingDataSensitivityDiscovery" + } + }, + databasesDspm: { + serializedName: "databasesDspm", + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingDatabasesDspm" + } } } } @@ -10031,6 +10699,32 @@ export const DefenderForDevOpsAzureDevOpsOffering: coreClient.CompositeMapper = } }; +export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { + serializedName: "CspmMonitorGitLab", + type: { + name: "Composite", + className: "CspmMonitorGitLabOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties + } + } +}; + +export const DefenderForDevOpsGitLabOffering: coreClient.CompositeMapper = { + serializedName: "DefenderForDevOpsGitLab", + type: { + name: "Composite", + className: "DefenderForDevOpsGitLabOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties + } + } +}; + export const AwsEnvironmentData: coreClient.CompositeMapper = { serializedName: "AwsAccount", type: { @@ -10046,6 +10740,24 @@ export const AwsEnvironmentData: coreClient.CompositeMapper = { name: "Composite", className: "AwsOrganizationalData" } + }, + regions: { + serializedName: "regions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + accountName: { + serializedName: "accountName", + readOnly: true, + type: { + name: "String" + } } } } @@ -10104,6 +10816,19 @@ export const AzureDevOpsScopeEnvironmentData: coreClient.CompositeMapper = { } }; +export const GitlabScopeEnvironmentData: coreClient.CompositeMapper = { + serializedName: "GitlabScope", + type: { + name: "Composite", + className: "GitlabScopeEnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: EnvironmentData.type.polymorphicDiscriminator, + modelProperties: { + ...EnvironmentData.type.modelProperties + } + } +}; + export const CefSolutionProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10245,6 +10970,13 @@ export const GcpOrganizationalDataOrganization: coreClient.CompositeMapper = { type: { name: "String" } + }, + organizationName: { + serializedName: "organizationName", + readOnly: true, + type: { + name: "String" + } } } } @@ -10963,10 +11695,13 @@ export let discriminators = { "CloudOffering.DefenderCspmGcp": DefenderCspmGcpOffering, "CloudOffering.DefenderForDevOpsGithub": DefenderForDevOpsGithubOffering, "CloudOffering.DefenderForDevOpsAzureDevOps": DefenderForDevOpsAzureDevOpsOffering, + "CloudOffering.CspmMonitorGitLab": CspmMonitorGitLabOffering, + "CloudOffering.DefenderForDevOpsGitLab": DefenderForDevOpsGitLabOffering, "EnvironmentData.AwsAccount": AwsEnvironmentData, "EnvironmentData.GcpProject": GcpProjectEnvironmentData, "EnvironmentData.GithubScope": GithubScopeEnvironmentData, "EnvironmentData.AzureDevOpsScope": AzureDevOpsScopeEnvironmentData, + "EnvironmentData.GitlabScope": GitlabScopeEnvironmentData, "AwsOrganizationalData.Organization": AwsOrganizationalDataMaster, "AwsOrganizationalData.Member": AwsOrganizationalDataMember, "GcpOrganizationalData.Organization": GcpOrganizationalDataOrganization, diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index 40dc8fdb571d..ce47e41f2c5f 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -32,16 +32,17 @@ import { JitNetworkAccessPolicy as JitNetworkAccessPolicyMapper, JitNetworkAccessPolicyInitiateRequest as JitNetworkAccessPolicyInitiateRequestMapper, ConnectorSetting as ConnectorSettingMapper, + UpdateSensitivitySettingsRequest as UpdateSensitivitySettingsRequestMapper, AlertSimulatorRequestBody as AlertSimulatorRequestBodyMapper, Setting as SettingMapper, IngestionSetting as IngestionSettingMapper, - SecurityConnector as SecurityConnectorMapper, GovernanceRule as GovernanceRuleMapper, ExecuteGovernanceRuleParams as ExecuteGovernanceRuleParamsMapper, GovernanceAssignment as GovernanceAssignmentMapper, Application as ApplicationMapper, RuleResultsInput as RuleResultsInputMapper, - RulesResultsInput as RulesResultsInputMapper + RulesResultsInput as RulesResultsInputMapper, + SecurityConnector as SecurityConnectorMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -230,7 +231,7 @@ export const complianceResultName: OperationURLParameter = { export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-03-01", + defaultValue: "2023-01-01", isConstant: true, serializedName: "api-version", type: { @@ -917,7 +918,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 +963,7 @@ export const alertSimulatorRequestBody: OperationParameter = { mapper: AlertSimulatorRequestBodyMapper }; -export const apiVersion13: OperationQueryParameter = { +export const apiVersion14: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-05-01", @@ -973,7 +991,7 @@ export const setting1: OperationParameter = { mapper: SettingMapper }; -export const apiVersion14: OperationQueryParameter = { +export const apiVersion15: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-01-15-preview", @@ -1001,7 +1019,7 @@ export const ingestionSetting: OperationParameter = { mapper: IngestionSettingMapper }; -export const apiVersion15: OperationQueryParameter = { +export const apiVersion16: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-05-01-preview", @@ -1024,34 +1042,6 @@ export const softwareName: OperationURLParameter = { } }; -export const apiVersion16: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-08-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const securityConnectorName: OperationURLParameter = { - parameterPath: "securityConnectorName", - mapper: { - serializedName: "securityConnectorName", - required: true, - type: { - name: "String" - } - } -}; - -export const securityConnector: OperationParameter = { - parameterPath: "securityConnector", - mapper: SecurityConnectorMapper -}; - export const apiVersion17: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -1165,6 +1155,17 @@ export const application: OperationParameter = { mapper: ApplicationMapper }; +export const securityConnectorName: OperationURLParameter = { + parameterPath: "securityConnectorName", + mapper: { + serializedName: "securityConnectorName", + required: true, + type: { + name: "String" + } + } +}; + export const resourceGroupName1: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -1309,3 +1310,64 @@ export const body5: OperationParameter = { parameterPath: ["options", "body"], mapper: RulesResultsInputMapper }; + +export const apiVersion21: 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 apiVersion22: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-01-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const pricingName1: OperationURLParameter = { + parameterPath: "pricingName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9_]+$"), + MaxLength: 63, + MinLength: 3 + }, + serializedName: "pricingName", + required: true, + type: { + name: "String" + } + } +}; + +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" + } + } +}; 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/index.ts b/sdk/security/arm-security/src/operations/index.ts index 8a83f3789bea..d4798f848348 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -47,11 +47,11 @@ 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 "./securityConnectors"; export * from "./governanceRules"; export * from "./governanceAssignments"; export * from "./applications"; @@ -66,3 +66,5 @@ export * from "./healthReportOperations"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentScanResults"; export * from "./sqlVulnerabilityAssessmentBaselineRules"; +export * from "./securityConnectors"; +export * from "./securityOperators"; diff --git a/sdk/security/arm-security/src/operations/ingestionSettings.ts b/sdk/security/arm-security/src/operations/ingestionSettings.ts index ec5e8d1b26c4..a5a70435a413 100644 --- a/sdk/security/arm-security/src/operations/ingestionSettings.ts +++ b/sdk/security/arm-security/src/operations/ingestionSettings.ts @@ -219,7 +219,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -236,7 +236,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -258,7 +258,7 @@ const createOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.ingestionSetting, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -279,7 +279,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -300,7 +300,7 @@ const listTokensOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -321,7 +321,7 @@ const listConnectionStringsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts index d6bf6a66dfeb..370d6c5a50f3 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts @@ -121,8 +121,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityConnectorName, - Parameters.applicationId + Parameters.applicationId, + Parameters.securityConnectorName ], headerParameters: [Parameters.accept], serializer @@ -148,8 +148,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityConnectorName, - Parameters.applicationId + Parameters.applicationId, + Parameters.securityConnectorName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -165,8 +165,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityConnectorName, - Parameters.applicationId + Parameters.applicationId, + Parameters.securityConnectorName ], serializer }; diff --git a/sdk/security/arm-security/src/operations/securityConnectors.ts b/sdk/security/arm-security/src/operations/securityConnectors.ts index c7da752ba74d..1a139139581e 100644 --- a/sdk/security/arm-security/src/operations/securityConnectors.ts +++ b/sdk/security/arm-security/src/operations/securityConnectors.ts @@ -324,7 +324,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion21], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -341,7 +341,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -362,7 +362,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -388,7 +388,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -412,7 +412,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -434,7 +434,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityOperators.ts b/sdk/security/arm-security/src/operations/securityOperators.ts new file mode 100644 index 000000000000..81604abe5f64 --- /dev/null +++ b/sdk/security/arm-security/src/operations/securityOperators.ts @@ -0,0 +1,190 @@ +/* + * 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 { SecurityOperators } 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 { + SecurityOperatorsListOptionalParams, + SecurityOperatorsListResponse, + SecurityOperatorsGetOptionalParams, + SecurityOperatorsGetResponse, + SecurityOperatorsCreateOrUpdateOptionalParams, + SecurityOperatorsCreateOrUpdateResponse, + SecurityOperatorsDeleteOptionalParams +} from "../models"; + +/** Class containing SecurityOperators operations. */ +export class SecurityOperatorsImpl implements SecurityOperators { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class SecurityOperators class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Lists Microsoft Defender for Cloud securityOperators in the subscription. + * @param pricingName name of the pricing configuration + * @param options The options parameters. + */ + list( + pricingName: string, + options?: SecurityOperatorsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { pricingName, options }, + listOperationSpec + ); + } + + /** + * Get a specific security operator for the requested scope. + * @param pricingName name of the pricing configuration + * @param securityOperatorName name of the securityOperator + * @param options The options parameters. + */ + get( + pricingName: string, + securityOperatorName: string, + options?: SecurityOperatorsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { pricingName, securityOperatorName, options }, + getOperationSpec + ); + } + + /** + * Creates Microsoft Defender for Cloud security operator on the given scope. + * @param pricingName name of the pricing configuration + * @param securityOperatorName name of the securityOperator + * @param options The options parameters. + */ + createOrUpdate( + pricingName: string, + securityOperatorName: string, + options?: SecurityOperatorsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { pricingName, securityOperatorName, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Delete Microsoft Defender for Cloud securityOperator in the subscription. + * @param pricingName name of the pricing configuration + * @param securityOperatorName name of the securityOperator + * @param options The options parameters. + */ + delete( + pricingName: string, + securityOperatorName: string, + options?: SecurityOperatorsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { pricingName, securityOperatorName, options }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}/securityOperators", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityOperatorList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.pricingName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}/securityOperators/{securityOperatorName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityOperator + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.pricingName1, + Parameters.securityOperatorName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}/securityOperators/{securityOperatorName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SecurityOperator + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.pricingName1, + Parameters.securityOperatorName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}/securityOperators/{securityOperatorName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.pricingName1, + Parameters.securityOperatorName + ], + 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/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index 656fedf1aea4..028a8cd55c8e 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.ts @@ -164,7 +164,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -181,7 +181,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -203,7 +203,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.setting1, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/softwareInventories.ts b/sdk/security/arm-security/src/operations/softwareInventories.ts index c27168e8f7f0..f4814c85e2bd 100644 --- a/sdk/security/arm-security/src/operations/softwareInventories.ts +++ b/sdk/security/arm-security/src/operations/softwareInventories.ts @@ -330,7 +330,7 @@ const listByExtendedResourceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -354,7 +354,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -371,7 +371,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operationsInterfaces/index.ts b/sdk/security/arm-security/src/operationsInterfaces/index.ts index 8a83f3789bea..d4798f848348 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/index.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/index.ts @@ -47,11 +47,11 @@ 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 "./securityConnectors"; export * from "./governanceRules"; export * from "./governanceAssignments"; export * from "./applications"; @@ -66,3 +66,5 @@ export * from "./healthReportOperations"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentScanResults"; export * from "./sqlVulnerabilityAssessmentBaselineRules"; +export * from "./securityConnectors"; +export * from "./securityOperators"; diff --git a/sdk/security/arm-security/src/operationsInterfaces/securityOperators.ts b/sdk/security/arm-security/src/operationsInterfaces/securityOperators.ts new file mode 100644 index 000000000000..5b526acd5171 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/securityOperators.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 { + SecurityOperatorsListOptionalParams, + SecurityOperatorsListResponse, + SecurityOperatorsGetOptionalParams, + SecurityOperatorsGetResponse, + SecurityOperatorsCreateOrUpdateOptionalParams, + SecurityOperatorsCreateOrUpdateResponse, + SecurityOperatorsDeleteOptionalParams +} from "../models"; + +/** Interface representing a SecurityOperators. */ +export interface SecurityOperators { + /** + * Lists Microsoft Defender for Cloud securityOperators in the subscription. + * @param pricingName name of the pricing configuration + * @param options The options parameters. + */ + list( + pricingName: string, + options?: SecurityOperatorsListOptionalParams + ): Promise; + /** + * Get a specific security operator for the requested scope. + * @param pricingName name of the pricing configuration + * @param securityOperatorName name of the securityOperator + * @param options The options parameters. + */ + get( + pricingName: string, + securityOperatorName: string, + options?: SecurityOperatorsGetOptionalParams + ): Promise; + /** + * Creates Microsoft Defender for Cloud security operator on the given scope. + * @param pricingName name of the pricing configuration + * @param securityOperatorName name of the securityOperator + * @param options The options parameters. + */ + createOrUpdate( + pricingName: string, + securityOperatorName: string, + options?: SecurityOperatorsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete Microsoft Defender for Cloud securityOperator in the subscription. + * @param pricingName name of the pricing configuration + * @param securityOperatorName name of the securityOperator + * @param options The options parameters. + */ + delete( + pricingName: string, + securityOperatorName: string, + options?: SecurityOperatorsDeleteOptionalParams + ): 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/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index bafaed320fee..90fceb74b0d6 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -51,11 +51,11 @@ import { SecureScoreControlDefinitionsImpl, SecuritySolutionsImpl, ConnectorsImpl, + SensitivitySettingsImpl, AlertsImpl, SettingsImpl, IngestionSettingsImpl, SoftwareInventoriesImpl, - SecurityConnectorsImpl, GovernanceRulesImpl, GovernanceAssignmentsImpl, ApplicationsImpl, @@ -69,7 +69,9 @@ import { HealthReportOperationsImpl, SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentScanResultsImpl, - SqlVulnerabilityAssessmentBaselineRulesImpl + SqlVulnerabilityAssessmentBaselineRulesImpl, + SecurityConnectorsImpl, + SecurityOperatorsImpl } from "./operations"; import { MdeOnboardings, @@ -113,11 +115,11 @@ import { SecureScoreControlDefinitions, SecuritySolutions, Connectors, + SensitivitySettings, Alerts, Settings, IngestionSettings, SoftwareInventories, - SecurityConnectors, GovernanceRules, GovernanceAssignments, Applications, @@ -131,9 +133,20 @@ import { HealthReportOperations, SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentScanResults, - SqlVulnerabilityAssessmentBaselineRules + SqlVulnerabilityAssessmentBaselineRules, + SecurityConnectors, + SecurityOperators } 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; @@ -288,11 +301,11 @@ 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.securityConnectors = new SecurityConnectorsImpl(this); this.governanceRules = new GovernanceRulesImpl(this); this.governanceAssignments = new GovernanceAssignmentsImpl(this); this.applications = new ApplicationsImpl(this); @@ -317,6 +330,36 @@ export class SecurityCenter extends coreClient.ServiceClient { this.sqlVulnerabilityAssessmentBaselineRules = new SqlVulnerabilityAssessmentBaselineRulesImpl( this ); + this.securityConnectors = new SecurityConnectorsImpl(this); + this.securityOperators = new SecurityOperatorsImpl(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; @@ -360,11 +403,11 @@ export class SecurityCenter extends coreClient.ServiceClient { secureScoreControlDefinitions: SecureScoreControlDefinitions; securitySolutions: SecuritySolutions; connectors: Connectors; + sensitivitySettings: SensitivitySettings; alerts: Alerts; settings: Settings; ingestionSettings: IngestionSettings; softwareInventories: SoftwareInventories; - securityConnectors: SecurityConnectors; governanceRules: GovernanceRules; governanceAssignments: GovernanceAssignments; applications: Applications; @@ -379,4 +422,43 @@ export class SecurityCenter extends coreClient.ServiceClient { sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentScanResults: SqlVulnerabilityAssessmentScanResults; sqlVulnerabilityAssessmentBaselineRules: SqlVulnerabilityAssessmentBaselineRules; + securityConnectors: SecurityConnectors; + securityOperators: SecurityOperators; } +// 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"