@azure/arm-security 5.0.1-alpha.20220921.1 → 6.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +307 -8
- package/dist/index.js +12366 -8653
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/alertsGetResourceGroupLevelSample.js +3 -3
- package/dist-esm/samples-dev/alertsGetResourceGroupLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/alertsGetSubscriptionLevelSample.js +1 -1
- package/dist-esm/samples-dev/alertsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/alertsListResourceGroupLevelByRegionSample.js +1 -1
- package/dist-esm/samples-dev/alertsListSample.js +1 -1
- package/dist-esm/samples-dev/alertsListSubscriptionLevelByRegionSample.js +1 -1
- package/dist-esm/samples-dev/alertsSimulateSample.js +4 -3
- package/dist-esm/samples-dev/alertsSimulateSample.js.map +1 -1
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToActivateSample.js +3 -3
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToActivateSample.js.map +1 -1
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToDismissSample.js +3 -3
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToDismissSample.js.map +1 -1
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToInProgressSample.d.ts +2 -0
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToInProgressSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToInProgressSample.js +32 -0
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToInProgressSample.js.map +1 -0
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToResolveSample.js +3 -3
- package/dist-esm/samples-dev/alertsUpdateResourceGroupLevelStateToResolveSample.js.map +1 -1
- package/dist-esm/samples-dev/alertsUpdateSubscriptionLevelStateToActivateSample.js +1 -1
- package/dist-esm/samples-dev/alertsUpdateSubscriptionLevelStateToDismissSample.js +1 -1
- package/dist-esm/samples-dev/alertsUpdateSubscriptionLevelStateToInProgressSample.d.ts +2 -0
- package/dist-esm/samples-dev/alertsUpdateSubscriptionLevelStateToInProgressSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/alertsUpdateSubscriptionLevelStateToInProgressSample.js +31 -0
- package/dist-esm/samples-dev/alertsUpdateSubscriptionLevelStateToInProgressSample.js.map +1 -0
- package/dist-esm/samples-dev/alertsUpdateSubscriptionLevelStateToResolveSample.js +1 -1
- package/dist-esm/samples-dev/applicationCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/applicationCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationDeleteSample.js +30 -0
- package/dist-esm/samples-dev/applicationDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationGetSample.js +30 -0
- package/dist-esm/samples-dev/applicationGetSample.js.map +1 -0
- package/dist-esm/samples-dev/applicationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/applicationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/applicationsListSample.js +43 -0
- package/dist-esm/samples-dev/applicationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/governanceAssignmentsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceAssignmentsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceAssignmentsCreateOrUpdateSample.js +50 -0
- package/dist-esm/samples-dev/governanceAssignmentsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceAssignmentsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceAssignmentsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceAssignmentsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/governanceAssignmentsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceAssignmentsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceAssignmentsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceAssignmentsGetSample.js +32 -0
- package/dist-esm/samples-dev/governanceAssignmentsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceAssignmentsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceAssignmentsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceAssignmentsListSample.js +45 -0
- package/dist-esm/samples-dev/governanceAssignmentsListSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceRuleListSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceRuleListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceRuleListSample.js +43 -0
- package/dist-esm/samples-dev/governanceRuleListSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceRulesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceRulesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceRulesCreateOrUpdateSample.js +56 -0
- package/dist-esm/samples-dev/governanceRulesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceRulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceRulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceRulesDeleteSample.js +30 -0
- package/dist-esm/samples-dev/governanceRulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceRulesGetSample.js +30 -0
- package/dist-esm/samples-dev/governanceRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceRulesRuleIdExecuteSingleSecurityConnectorSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceRulesRuleIdExecuteSingleSecurityConnectorSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceRulesRuleIdExecuteSingleSecurityConnectorSample.js +32 -0
- package/dist-esm/samples-dev/governanceRulesRuleIdExecuteSingleSecurityConnectorSample.js.map +1 -0
- package/dist-esm/samples-dev/governanceRulesRuleIdExecuteSingleSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/governanceRulesRuleIdExecuteSingleSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/governanceRulesRuleIdExecuteSingleSubscriptionSample.js +30 -0
- package/dist-esm/samples-dev/governanceRulesRuleIdExecuteSingleSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/pricingsGetSample.js +2 -2
- package/dist-esm/samples-dev/pricingsListSample.js +2 -2
- package/dist-esm/samples-dev/pricingsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/secureScoresGetSample.js +2 -2
- package/dist-esm/samples-dev/secureScoresListSample.js +2 -2
- package/dist-esm/samples-dev/securityConnectorApplicationCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorApplicationCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorApplicationCreateOrUpdateSample.js +44 -0
- package/dist-esm/samples-dev/securityConnectorApplicationCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorApplicationDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorApplicationDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorApplicationDeleteSample.js +32 -0
- package/dist-esm/samples-dev/securityConnectorApplicationDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorApplicationGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorApplicationGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorApplicationGetSample.js +32 -0
- package/dist-esm/samples-dev/securityConnectorApplicationGetSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorApplicationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorApplicationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorApplicationsListSample.js +45 -0
- package/dist-esm/samples-dev/securityConnectorApplicationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRuleListSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRuleListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRuleListSample.js +45 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRuleListSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesCreateOrUpdateSample.js +58 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesExecuteStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesExecuteStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesExecuteStatusGetSample.js +33 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesExecuteStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesGetSample.js +32 -0
- package/dist-esm/samples-dev/securityConnectorGovernanceRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/securityConnectorsCreateOrUpdateSample.js +4 -3
- package/dist-esm/samples-dev/securityConnectorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/securityConnectorsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/securityConnectorsGetSample.js +1 -1
- package/dist-esm/samples-dev/securityConnectorsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/securityConnectorsListSample.js +1 -1
- package/dist-esm/samples-dev/securityConnectorsUpdateSample.js +3 -2
- package/dist-esm/samples-dev/securityConnectorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/securityContactsCreateSample.js +10 -38
- package/dist-esm/samples-dev/securityContactsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/securityContactsDeleteSample.js +6 -6
- package/dist-esm/samples-dev/securityContactsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/securityContactsGetSample.js +6 -23
- package/dist-esm/samples-dev/securityContactsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/securityContactsListSample.js +5 -35
- package/dist-esm/samples-dev/securityContactsListSample.js.map +1 -1
- package/dist-esm/samples-dev/settingsGetSample.js +3 -3
- package/dist-esm/samples-dev/settingsListSample.js +3 -3
- package/dist-esm/samples-dev/settingsUpdateSample.js +3 -3
- package/dist-esm/samples-dev/subscriptionGovernanceRulesExecuteStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/subscriptionGovernanceRulesExecuteStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/subscriptionGovernanceRulesExecuteStatusGetSample.js +31 -0
- package/dist-esm/samples-dev/subscriptionGovernanceRulesExecuteStatusGetSample.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1532 -323
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +423 -29
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +111 -31
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1690 -215
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +14 -4
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +96 -17
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/adaptiveApplicationControls.js +4 -4
- package/dist-esm/src/operations/adaptiveApplicationControls.js.map +1 -1
- package/dist-esm/src/operations/adaptiveNetworkHardenings.js +4 -4
- package/dist-esm/src/operations/adaptiveNetworkHardenings.js.map +1 -1
- package/dist-esm/src/operations/alerts.d.ts +37 -10
- package/dist-esm/src/operations/alerts.d.ts.map +1 -1
- package/dist-esm/src/operations/alerts.js +125 -15
- package/dist-esm/src/operations/alerts.js.map +1 -1
- package/dist-esm/src/operations/alertsSuppressionRules.js +5 -5
- package/dist-esm/src/operations/allowedConnections.js +5 -5
- package/dist-esm/src/operations/allowedConnections.js.map +1 -1
- package/dist-esm/src/operations/applicationOperations.d.ts +32 -0
- package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationOperations.js +105 -0
- package/dist-esm/src/operations/applicationOperations.js.map +1 -0
- package/dist-esm/src/operations/applications.d.ts +32 -0
- package/dist-esm/src/operations/applications.d.ts.map +1 -0
- package/dist-esm/src/operations/applications.js +124 -0
- package/dist-esm/src/operations/applications.js.map +1 -0
- package/dist-esm/src/operations/assessments.js +5 -5
- package/dist-esm/src/operations/assessmentsMetadata.js +8 -8
- package/dist-esm/src/operations/automations.js +8 -8
- package/dist-esm/src/operations/connectors.js +5 -5
- package/dist-esm/src/operations/connectors.js.map +1 -1
- package/dist-esm/src/operations/discoveredSecuritySolutions.js +5 -5
- package/dist-esm/src/operations/discoveredSecuritySolutions.js.map +1 -1
- package/dist-esm/src/operations/externalSecuritySolutions.d.ts +3 -3
- package/dist-esm/src/operations/externalSecuritySolutions.d.ts.map +1 -1
- package/dist-esm/src/operations/externalSecuritySolutions.js +5 -5
- package/dist-esm/src/operations/externalSecuritySolutions.js.map +1 -1
- package/dist-esm/src/operations/governanceAssignments.d.ts +78 -0
- package/dist-esm/src/operations/governanceAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/governanceAssignments.js +241 -0
- package/dist-esm/src/operations/governanceAssignments.js.map +1 -0
- package/dist-esm/src/operations/governanceRuleOperations.d.ts +32 -0
- package/dist-esm/src/operations/governanceRuleOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/governanceRuleOperations.js +124 -0
- package/dist-esm/src/operations/governanceRuleOperations.js.map +1 -0
- package/dist-esm/src/operations/governanceRules.d.ts +63 -0
- package/dist-esm/src/operations/governanceRules.d.ts.map +1 -0
- package/dist-esm/src/operations/governanceRules.js +276 -0
- package/dist-esm/src/operations/governanceRules.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +11 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/jitNetworkAccessPolicies.js +12 -12
- package/dist-esm/src/operations/jitNetworkAccessPolicies.js.map +1 -1
- package/dist-esm/src/operations/pricings.d.ts +3 -3
- package/dist-esm/src/operations/pricings.js +3 -3
- package/dist-esm/src/operations/regulatoryComplianceAssessments.js +3 -3
- package/dist-esm/src/operations/regulatoryComplianceControls.js +3 -3
- package/dist-esm/src/operations/regulatoryComplianceStandards.js +3 -3
- package/dist-esm/src/operations/secureScoreControlDefinitions.js +4 -4
- package/dist-esm/src/operations/secureScoreControlDefinitions.js.map +1 -1
- package/dist-esm/src/operations/secureScoreControls.js +4 -4
- package/dist-esm/src/operations/secureScoreControls.js.map +1 -1
- package/dist-esm/src/operations/secureScores.d.ts +4 -4
- package/dist-esm/src/operations/secureScores.js +7 -7
- package/dist-esm/src/operations/secureScores.js.map +1 -1
- package/dist-esm/src/operations/securityConnectorApplication.d.ts +41 -0
- package/dist-esm/src/operations/securityConnectorApplication.d.ts.map +1 -0
- package/dist-esm/src/operations/securityConnectorApplication.js +126 -0
- package/dist-esm/src/operations/securityConnectorApplication.js.map +1 -0
- package/dist-esm/src/operations/securityConnectorApplications.d.ts +41 -0
- package/dist-esm/src/operations/securityConnectorApplications.d.ts.map +1 -0
- package/dist-esm/src/operations/securityConnectorApplications.js +140 -0
- package/dist-esm/src/operations/securityConnectorApplications.js.map +1 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRule.d.ts +41 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRule.d.ts.map +1 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRule.js +140 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRule.js.map +1 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRules.d.ts +41 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRules.d.ts.map +1 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRules.js +126 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRules.js.map +1 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRulesExecuteStatus.d.ts +36 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRulesExecuteStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRulesExecuteStatus.js +123 -0
- package/dist-esm/src/operations/securityConnectorGovernanceRulesExecuteStatus.js.map +1 -0
- package/dist-esm/src/operations/securityConnectors.js +8 -8
- package/dist-esm/src/operations/securityConnectors.js.map +1 -1
- package/dist-esm/src/operations/securityContacts.d.ts +6 -13
- package/dist-esm/src/operations/securityContacts.d.ts.map +1 -1
- package/dist-esm/src/operations/securityContacts.js +14 -41
- package/dist-esm/src/operations/securityContacts.js.map +1 -1
- package/dist-esm/src/operations/securitySolutions.js +3 -3
- package/dist-esm/src/operations/securitySolutions.js.map +1 -1
- package/dist-esm/src/operations/securitySolutionsReferenceDataOperations.js +2 -2
- package/dist-esm/src/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
- package/dist-esm/src/operations/serverVulnerabilityAssessmentOperations.js +4 -4
- package/dist-esm/src/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
- package/dist-esm/src/operations/settings.d.ts +4 -4
- package/dist-esm/src/operations/settings.js +4 -4
- package/dist-esm/src/operations/subAssessments.js +5 -5
- package/dist-esm/src/operations/subscriptionGovernanceRulesExecuteStatus.d.ts +30 -0
- package/dist-esm/src/operations/subscriptionGovernanceRulesExecuteStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/subscriptionGovernanceRulesExecuteStatus.js +109 -0
- package/dist-esm/src/operations/subscriptionGovernanceRulesExecuteStatus.js.map +1 -0
- package/dist-esm/src/operations/topology.js +5 -5
- package/dist-esm/src/operations/topology.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/alerts.d.ts +37 -10
- package/dist-esm/src/operationsInterfaces/alerts.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/applications.js +9 -0
- package/dist-esm/src/operationsInterfaces/applications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/externalSecuritySolutions.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/externalSecuritySolutions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/governanceAssignments.d.ts +49 -0
- package/dist-esm/src/operationsInterfaces/governanceAssignments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/governanceAssignments.js +9 -0
- package/dist-esm/src/operationsInterfaces/governanceAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/governanceRuleOperations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/governanceRuleOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/governanceRuleOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/governanceRuleOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/governanceRules.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/governanceRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/governanceRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/governanceRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/pricings.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/secureScores.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/securityConnectorApplication.d.ts +33 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorApplication.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorApplication.js +9 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorApplication.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorApplications.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorApplications.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorApplications.js +9 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorApplications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRule.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRule.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRule.js +9 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRule.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRules.d.ts +33 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.d.ts +28 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityContacts.d.ts +5 -12
- package/dist-esm/src/operationsInterfaces/securityContacts.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/settings.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/subscriptionGovernanceRulesExecuteStatus.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/subscriptionGovernanceRulesExecuteStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/subscriptionGovernanceRulesExecuteStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/subscriptionGovernanceRulesExecuteStatus.js.map +1 -0
- package/dist-esm/src/securityCenter.d.ts +12 -1
- package/dist-esm/src/securityCenter.d.ts.map +1 -1
- package/dist-esm/src/securityCenter.js +35 -2
- package/dist-esm/src/securityCenter.js.map +1 -1
- package/dist-esm/test/security_examples.spec.d.ts +4 -0
- package/dist-esm/test/security_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/security_examples.spec.js +112 -0
- package/dist-esm/test/security_examples.spec.js.map +1 -0
- package/package.json +13 -10
- package/review/arm-security.api.md +1295 -739
- package/src/models/index.ts +2002 -606
- package/src/models/mappers.ts +3702 -2022
- package/src/models/parameters.ts +111 -18
- package/src/operations/adaptiveApplicationControls.ts +4 -4
- package/src/operations/adaptiveNetworkHardenings.ts +4 -4
- package/src/operations/alerts.ts +171 -17
- package/src/operations/alertsSuppressionRules.ts +5 -5
- package/src/operations/allowedConnections.ts +5 -5
- package/src/operations/applicationOperations.ts +144 -0
- package/src/operations/applications.ts +142 -0
- package/src/operations/assessments.ts +5 -5
- package/src/operations/assessmentsMetadata.ts +8 -8
- package/src/operations/automations.ts +8 -8
- package/src/operations/connectors.ts +5 -5
- package/src/operations/discoveredSecuritySolutions.ts +5 -5
- package/src/operations/externalSecuritySolutions.ts +12 -12
- package/src/operations/governanceAssignments.ts +317 -0
- package/src/operations/governanceRuleOperations.ts +142 -0
- package/src/operations/governanceRules.ts +404 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/jitNetworkAccessPolicies.ts +12 -12
- package/src/operations/pricings.ts +3 -3
- package/src/operations/regulatoryComplianceAssessments.ts +3 -3
- package/src/operations/regulatoryComplianceControls.ts +3 -3
- package/src/operations/regulatoryComplianceStandards.ts +3 -3
- package/src/operations/secureScoreControlDefinitions.ts +4 -4
- package/src/operations/secureScoreControls.ts +4 -4
- package/src/operations/secureScores.ts +7 -7
- package/src/operations/securityConnectorApplication.ts +172 -0
- package/src/operations/securityConnectorApplications.ts +193 -0
- package/src/operations/securityConnectorGovernanceRule.ts +193 -0
- package/src/operations/securityConnectorGovernanceRules.ts +172 -0
- package/src/operations/securityConnectorGovernanceRulesExecuteStatus.ts +178 -0
- package/src/operations/securityConnectors.ts +8 -8
- package/src/operations/securityContacts.ts +14 -52
- package/src/operations/securitySolutions.ts +3 -3
- package/src/operations/securitySolutionsReferenceDataOperations.ts +2 -2
- package/src/operations/serverVulnerabilityAssessmentOperations.ts +4 -4
- package/src/operations/settings.ts +4 -4
- package/src/operations/subAssessments.ts +5 -5
- package/src/operations/subscriptionGovernanceRulesExecuteStatus.ts +152 -0
- package/src/operations/topology.ts +5 -5
- package/src/operationsInterfaces/alerts.ts +53 -11
- package/src/operationsInterfaces/applicationOperations.ts +49 -0
- package/src/operationsInterfaces/applications.ts +22 -0
- package/src/operationsInterfaces/externalSecuritySolutions.ts +3 -3
- package/src/operationsInterfaces/governanceAssignments.ts +86 -0
- package/src/operationsInterfaces/governanceRuleOperations.ts +22 -0
- package/src/operationsInterfaces/governanceRules.ts +114 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/pricings.ts +3 -3
- package/src/operationsInterfaces/secureScores.ts +3 -3
- package/src/operationsInterfaces/securityConnectorApplication.ts +64 -0
- package/src/operationsInterfaces/securityConnectorApplications.ts +30 -0
- package/src/operationsInterfaces/securityConnectorGovernanceRule.ts +30 -0
- package/src/operationsInterfaces/securityConnectorGovernanceRules.ts +64 -0
- package/src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.ts +58 -0
- package/src/operationsInterfaces/securityContacts.ts +5 -18
- package/src/operationsInterfaces/settings.ts +3 -3
- package/src/operationsInterfaces/subscriptionGovernanceRulesExecuteStatus.ts +46 -0
- package/src/securityCenter.ts +90 -3
- package/types/arm-security.d.ts +2012 -360
- package/dist-esm/samples-dev/securityContactsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/securityContactsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/securityContactsUpdateSample.js +0 -60
- package/dist-esm/samples-dev/securityContactsUpdateSample.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -40
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=securityConnectorApplication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorApplication.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorApplication.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Application, SecurityConnectorApplicationsListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a SecurityConnectorApplications. */
|
|
4
|
+
export interface SecurityConnectorApplications {
|
|
5
|
+
/**
|
|
6
|
+
* Get a list of all relevant applications over a security connector level scope
|
|
7
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
8
|
+
* case insensitive.
|
|
9
|
+
* @param securityConnectorName The security connector name.
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
list(resourceGroupName: string, securityConnectorName: string, options?: SecurityConnectorApplicationsListOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=securityConnectorApplications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorApplications.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorApplications.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,WAAW,EACX,+CAA+C,EAChD,MAAM,WAAW,CAAC;AAGnB,8DAA8D;AAC9D,MAAM,WAAW,6BAA6B;IAC5C;;;;;;OAMG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,WAAW,CAAC,CAAC;CAC5C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=securityConnectorApplications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorApplications.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorApplications.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { GovernanceRule, SecurityConnectorGovernanceRuleListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a SecurityConnectorGovernanceRule. */
|
|
4
|
+
export interface SecurityConnectorGovernanceRule {
|
|
5
|
+
/**
|
|
6
|
+
* Get a list of all relevant governanceRules over a security connector level scope
|
|
7
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
8
|
+
* case insensitive.
|
|
9
|
+
* @param securityConnectorName The security connector name.
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
list(resourceGroupName: string, securityConnectorName: string, options?: SecurityConnectorGovernanceRuleListOptionalParams): PagedAsyncIterableIterator<GovernanceRule>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=securityConnectorGovernanceRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorGovernanceRule.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorGovernanceRule.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,cAAc,EACd,iDAAiD,EAClD,MAAM,WAAW,CAAC;AAGnB,gEAAgE;AAChE,MAAM,WAAW,+BAA+B;IAC9C;;;;;;OAMG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE,iDAAiD,GAC1D,0BAA0B,CAAC,cAAc,CAAC,CAAC;CAC/C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=securityConnectorGovernanceRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorGovernanceRule.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorGovernanceRule.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SecurityConnectorGovernanceRulesGetOptionalParams, SecurityConnectorGovernanceRulesGetResponse, GovernanceRule, SecurityConnectorGovernanceRulesCreateOrUpdateOptionalParams, SecurityConnectorGovernanceRulesCreateOrUpdateResponse, SecurityConnectorGovernanceRulesDeleteOptionalParams } from "../models";
|
|
2
|
+
/** Interface representing a SecurityConnectorGovernanceRules. */
|
|
3
|
+
export interface SecurityConnectorGovernanceRules {
|
|
4
|
+
/**
|
|
5
|
+
* Get a specific governanceRule for the requested scope by ruleId
|
|
6
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
7
|
+
* case insensitive.
|
|
8
|
+
* @param securityConnectorName The security connector name.
|
|
9
|
+
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
get(resourceGroupName: string, securityConnectorName: string, ruleId: string, options?: SecurityConnectorGovernanceRulesGetOptionalParams): Promise<SecurityConnectorGovernanceRulesGetResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Creates or update a security GovernanceRule on the given security connector.
|
|
15
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
16
|
+
* case insensitive.
|
|
17
|
+
* @param securityConnectorName The security connector name.
|
|
18
|
+
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule
|
|
19
|
+
* @param governanceRule GovernanceRule over a subscription scope
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
createOrUpdate(resourceGroupName: string, securityConnectorName: string, ruleId: string, governanceRule: GovernanceRule, options?: SecurityConnectorGovernanceRulesCreateOrUpdateOptionalParams): Promise<SecurityConnectorGovernanceRulesCreateOrUpdateResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Delete a GovernanceRule over a given scope
|
|
25
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
26
|
+
* case insensitive.
|
|
27
|
+
* @param securityConnectorName The security connector name.
|
|
28
|
+
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
delete(resourceGroupName: string, securityConnectorName: string, ruleId: string, options?: SecurityConnectorGovernanceRulesDeleteOptionalParams): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=securityConnectorGovernanceRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorGovernanceRules.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorGovernanceRules.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,iDAAiD,EACjD,2CAA2C,EAC3C,cAAc,EACd,4DAA4D,EAC5D,sDAAsD,EACtD,oDAAoD,EACrD,MAAM,WAAW,CAAC;AAEnB,iEAAiE;AACjE,MAAM,WAAW,gCAAgC;IAC/C;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC,CAAC;IACxD;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CAAC,sDAAsD,CAAC,CAAC;IACnE;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=securityConnectorGovernanceRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorGovernanceRules.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorGovernanceRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
2
|
+
import { SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams, SecurityConnectorGovernanceRulesExecuteStatusGetResponse } from "../models";
|
|
3
|
+
/** Interface representing a SecurityConnectorGovernanceRulesExecuteStatus. */
|
|
4
|
+
export interface SecurityConnectorGovernanceRulesExecuteStatus {
|
|
5
|
+
/**
|
|
6
|
+
* Get a specific governanceRule execution status for the requested scope by ruleId and operationId
|
|
7
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
8
|
+
* case insensitive.
|
|
9
|
+
* @param securityConnectorName The security connector name.
|
|
10
|
+
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule
|
|
11
|
+
* @param operationId The security GovernanceRule execution key - unique key for the execution of
|
|
12
|
+
* GovernanceRule
|
|
13
|
+
* @param options The options parameters.
|
|
14
|
+
*/
|
|
15
|
+
beginGet(resourceGroupName: string, securityConnectorName: string, ruleId: string, operationId: string, options?: SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams): Promise<PollerLike<PollOperationState<SecurityConnectorGovernanceRulesExecuteStatusGetResponse>, SecurityConnectorGovernanceRulesExecuteStatusGetResponse>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get a specific governanceRule execution status for the requested scope by ruleId and operationId
|
|
18
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
19
|
+
* case insensitive.
|
|
20
|
+
* @param securityConnectorName The security connector name.
|
|
21
|
+
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule
|
|
22
|
+
* @param operationId The security GovernanceRule execution key - unique key for the execution of
|
|
23
|
+
* GovernanceRule
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
beginGetAndWait(resourceGroupName: string, securityConnectorName: string, ruleId: string, operationId: string, options?: SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams): Promise<SecurityConnectorGovernanceRulesExecuteStatusGetResponse>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=securityConnectorGovernanceRulesExecuteStatus.d.ts.map
|
package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorGovernanceRulesExecuteStatus.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,8DAA8D,EAC9D,wDAAwD,EACzD,MAAM,WAAW,CAAC;AAEnB,8EAA8E;AAC9E,MAAM,WAAW,6CAA6C;IAC5D;;;;;;;;;OASG;IACH,QAAQ,CACN,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8DAA8D,GACvE,OAAO,CACR,UAAU,CACR,kBAAkB,CAChB,wDAAwD,CACzD,EACD,wDAAwD,CACzD,CACF,CAAC;IACF;;;;;;;;;OASG;IACH,eAAe,CACb,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8DAA8D,GACvE,OAAO,CAAC,wDAAwD,CAAC,CAAC;CACtE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=securityConnectorGovernanceRulesExecuteStatus.js.map
|
package/dist-esm/src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityConnectorGovernanceRulesExecuteStatus.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityConnectorGovernanceRulesExecuteStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -1,37 +1,30 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { SecurityContact, SecurityContactsListOptionalParams, SecurityContactsGetOptionalParams, SecurityContactsGetResponse, SecurityContactsCreateOptionalParams, SecurityContactsCreateResponse, SecurityContactsDeleteOptionalParams
|
|
2
|
+
import { SecurityContact, SecurityContactsListOptionalParams, SecurityContactsGetOptionalParams, SecurityContactsGetResponse, SecurityContactsCreateOptionalParams, SecurityContactsCreateResponse, SecurityContactsDeleteOptionalParams } from "../models";
|
|
3
3
|
/** Interface representing a SecurityContacts. */
|
|
4
4
|
export interface SecurityContacts {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* List all security contact configurations for the subscription
|
|
7
7
|
* @param options The options parameters.
|
|
8
8
|
*/
|
|
9
9
|
list(options?: SecurityContactsListOptionalParams): PagedAsyncIterableIterator<SecurityContact>;
|
|
10
10
|
/**
|
|
11
|
-
* Security contact configurations for the subscription
|
|
11
|
+
* Get Default Security contact configurations for the subscription
|
|
12
12
|
* @param securityContactName Name of the security contact object
|
|
13
13
|
* @param options The options parameters.
|
|
14
14
|
*/
|
|
15
15
|
get(securityContactName: string, options?: SecurityContactsGetOptionalParams): Promise<SecurityContactsGetResponse>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Create security contact configurations for the subscription
|
|
18
18
|
* @param securityContactName Name of the security contact object
|
|
19
19
|
* @param securityContact Security contact object
|
|
20
20
|
* @param options The options parameters.
|
|
21
21
|
*/
|
|
22
22
|
create(securityContactName: string, securityContact: SecurityContact, options?: SecurityContactsCreateOptionalParams): Promise<SecurityContactsCreateResponse>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Delete security contact configurations for the subscription
|
|
25
25
|
* @param securityContactName Name of the security contact object
|
|
26
26
|
* @param options The options parameters.
|
|
27
27
|
*/
|
|
28
28
|
delete(securityContactName: string, options?: SecurityContactsDeleteOptionalParams): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Security contact configurations for the subscription
|
|
31
|
-
* @param securityContactName Name of the security contact object
|
|
32
|
-
* @param securityContact Security contact object
|
|
33
|
-
* @param options The options parameters.
|
|
34
|
-
*/
|
|
35
|
-
update(securityContactName: string, securityContact: SecurityContact, options?: SecurityContactsUpdateOptionalParams): Promise<SecurityContactsUpdateResponse>;
|
|
36
29
|
}
|
|
37
30
|
//# sourceMappingURL=securityContacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityContacts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityContacts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,eAAe,EACf,kCAAkC,EAClC,iCAAiC,EACjC,2BAA2B,EAC3B,oCAAoC,EACpC,8BAA8B,EAC9B,oCAAoC,
|
|
1
|
+
{"version":3,"file":"securityContacts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/securityContacts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,eAAe,EACf,kCAAkC,EAClC,iCAAiC,EACjC,2BAA2B,EAC3B,oCAAoC,EACpC,8BAA8B,EAC9B,oCAAoC,EACrC,MAAM,WAAW,CAAC;AAGnB,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,kCAAkC,GAC3C,0BAA0B,CAAC,eAAe,CAAC,CAAC;IAC/C;;;;OAIG;IACH,GAAG,CACD,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC;;;;;OAKG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC3C;;;;OAIG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -3,18 +3,18 @@ import { SettingUnion, SettingsListOptionalParams, SettingName, SettingsGetOptio
|
|
|
3
3
|
/** Interface representing a Settings. */
|
|
4
4
|
export interface Settings {
|
|
5
5
|
/**
|
|
6
|
-
* Settings about different configurations in
|
|
6
|
+
* Settings about different configurations in Microsoft Defender for Cloud
|
|
7
7
|
* @param options The options parameters.
|
|
8
8
|
*/
|
|
9
9
|
list(options?: SettingsListOptionalParams): PagedAsyncIterableIterator<SettingUnion>;
|
|
10
10
|
/**
|
|
11
|
-
* Settings of different configurations in
|
|
11
|
+
* Settings of different configurations in Microsoft Defender for Cloud
|
|
12
12
|
* @param settingName The name of the setting
|
|
13
13
|
* @param options The options parameters.
|
|
14
14
|
*/
|
|
15
15
|
get(settingName: SettingName, options?: SettingsGetOptionalParams): Promise<SettingsGetResponse>;
|
|
16
16
|
/**
|
|
17
|
-
* updating settings about different configurations in
|
|
17
|
+
* updating settings about different configurations in Microsoft Defender for Cloud
|
|
18
18
|
* @param settingName The name of the setting
|
|
19
19
|
* @param setting Setting object
|
|
20
20
|
* @param options The options parameters.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
2
|
+
import { SubscriptionGovernanceRulesExecuteStatusGetOptionalParams, SubscriptionGovernanceRulesExecuteStatusGetResponse } from "../models";
|
|
3
|
+
/** Interface representing a SubscriptionGovernanceRulesExecuteStatus. */
|
|
4
|
+
export interface SubscriptionGovernanceRulesExecuteStatus {
|
|
5
|
+
/**
|
|
6
|
+
* Get a specific governanceRule execution status for the requested scope by ruleId and operationId
|
|
7
|
+
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule
|
|
8
|
+
* @param operationId The security GovernanceRule execution key - unique key for the execution of
|
|
9
|
+
* GovernanceRule
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
beginGet(ruleId: string, operationId: string, options?: SubscriptionGovernanceRulesExecuteStatusGetOptionalParams): Promise<PollerLike<PollOperationState<SubscriptionGovernanceRulesExecuteStatusGetResponse>, SubscriptionGovernanceRulesExecuteStatusGetResponse>>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a specific governanceRule execution status for the requested scope by ruleId and operationId
|
|
15
|
+
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule
|
|
16
|
+
* @param operationId The security GovernanceRule execution key - unique key for the execution of
|
|
17
|
+
* GovernanceRule
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
beginGetAndWait(ruleId: string, operationId: string, options?: SubscriptionGovernanceRulesExecuteStatusGetOptionalParams): Promise<SubscriptionGovernanceRulesExecuteStatusGetResponse>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=subscriptionGovernanceRulesExecuteStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionGovernanceRulesExecuteStatus.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionGovernanceRulesExecuteStatus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,yDAAyD,EACzD,mDAAmD,EACpD,MAAM,WAAW,CAAC;AAEnB,yEAAyE;AACzE,MAAM,WAAW,wCAAwC;IACvD;;;;;;OAMG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yDAAyD,GAClE,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,mDAAmD,CAAC,EACvE,mDAAmD,CACpD,CACF,CAAC;IACF;;;;;;OAMG;IACH,eAAe,CACb,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yDAAyD,GAClE,OAAO,CAAC,mDAAmD,CAAC,CAAC;CACjE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=subscriptionGovernanceRulesExecuteStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionGovernanceRulesExecuteStatus.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionGovernanceRulesExecuteStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { MdeOnboardings, CustomAssessmentAutomations, CustomEntityStoreAssignments, ComplianceResults, Pricings, AdvancedThreatProtection, DeviceSecurityGroups, IotSecuritySolution, IotSecuritySolutionAnalytics, IotSecuritySolutionsAnalyticsAggregatedAlert, IotSecuritySolutionsAnalyticsRecommendation, Locations, Operations, Tasks, AutoProvisioningSettings, Compliances, InformationProtectionPolicies, SecurityContacts, WorkspaceSettings, RegulatoryComplianceStandards, RegulatoryComplianceControls, RegulatoryComplianceAssessments, SubAssessments, Automations, AlertsSuppressionRules, ServerVulnerabilityAssessmentOperations, AssessmentsMetadata, Assessments, AdaptiveApplicationControls, AdaptiveNetworkHardenings, AllowedConnections, Topology, JitNetworkAccessPolicies, DiscoveredSecuritySolutions, SecuritySolutionsReferenceDataOperations, ExternalSecuritySolutions, SecureScores, SecureScoreControls, SecureScoreControlDefinitions, SecuritySolutions, Connectors, SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentScanResults, SqlVulnerabilityAssessmentBaselineRules, Alerts, Settings, IngestionSettings, SoftwareInventories, SecurityConnectors } from "./operationsInterfaces";
|
|
3
|
+
import { MdeOnboardings, CustomAssessmentAutomations, CustomEntityStoreAssignments, ComplianceResults, Pricings, AdvancedThreatProtection, DeviceSecurityGroups, IotSecuritySolution, IotSecuritySolutionAnalytics, IotSecuritySolutionsAnalyticsAggregatedAlert, IotSecuritySolutionsAnalyticsRecommendation, Locations, Operations, Tasks, AutoProvisioningSettings, Compliances, InformationProtectionPolicies, SecurityContacts, WorkspaceSettings, RegulatoryComplianceStandards, RegulatoryComplianceControls, RegulatoryComplianceAssessments, SubAssessments, Automations, AlertsSuppressionRules, ServerVulnerabilityAssessmentOperations, AssessmentsMetadata, Assessments, AdaptiveApplicationControls, AdaptiveNetworkHardenings, AllowedConnections, Topology, JitNetworkAccessPolicies, DiscoveredSecuritySolutions, SecuritySolutionsReferenceDataOperations, ExternalSecuritySolutions, SecureScores, SecureScoreControls, SecureScoreControlDefinitions, SecuritySolutions, Connectors, SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentScanResults, SqlVulnerabilityAssessmentBaselineRules, Alerts, Settings, IngestionSettings, SoftwareInventories, SecurityConnectors, GovernanceRuleOperations, GovernanceRules, SecurityConnectorGovernanceRule, SecurityConnectorGovernanceRules, SubscriptionGovernanceRulesExecuteStatus, SecurityConnectorGovernanceRulesExecuteStatus, GovernanceAssignments, Applications, ApplicationOperations, SecurityConnectorApplications, SecurityConnectorApplication } from "./operationsInterfaces";
|
|
4
4
|
import { SecurityCenterOptionalParams } from "./models";
|
|
5
5
|
export declare class SecurityCenter extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -61,5 +61,16 @@ export declare class SecurityCenter extends coreClient.ServiceClient {
|
|
|
61
61
|
ingestionSettings: IngestionSettings;
|
|
62
62
|
softwareInventories: SoftwareInventories;
|
|
63
63
|
securityConnectors: SecurityConnectors;
|
|
64
|
+
governanceRuleOperations: GovernanceRuleOperations;
|
|
65
|
+
governanceRules: GovernanceRules;
|
|
66
|
+
securityConnectorGovernanceRule: SecurityConnectorGovernanceRule;
|
|
67
|
+
securityConnectorGovernanceRules: SecurityConnectorGovernanceRules;
|
|
68
|
+
subscriptionGovernanceRulesExecuteStatus: SubscriptionGovernanceRulesExecuteStatus;
|
|
69
|
+
securityConnectorGovernanceRulesExecuteStatus: SecurityConnectorGovernanceRulesExecuteStatus;
|
|
70
|
+
governanceAssignments: GovernanceAssignments;
|
|
71
|
+
applications: Applications;
|
|
72
|
+
applicationOperations: ApplicationOperations;
|
|
73
|
+
securityConnectorApplications: SecurityConnectorApplications;
|
|
74
|
+
securityConnectorApplication: SecurityConnectorApplication;
|
|
64
75
|
}
|
|
65
76
|
//# sourceMappingURL=securityCenter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityCenter.d.ts","sourceRoot":"","sources":["../../src/securityCenter.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"securityCenter.d.ts","sourceRoot":"","sources":["../../src/securityCenter.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AA+D7C,OAAO,EACL,cAAc,EACd,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,QAAQ,EACR,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,4BAA4B,EAC5B,4CAA4C,EAC5C,2CAA2C,EAC3C,SAAS,EACT,UAAU,EACV,KAAK,EACL,wBAAwB,EACxB,W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AAQ,CAAC;IACnB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,eAAe,EAAE,eAAe,CAAC;IACjC,+BAA+B,EAAE,+BAA+B,CAAC;IACjE,gCAAgC,EAAE,gCAAgC,CAAC;IACnE,wCAAwC,EAAE,wCAAwC,CAAC;IACnF,6CAA6C,EAAE,6CAA6C,CAAC;IAC7F,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,YAAY,EAAE,YAAY,CAAC;IAC3B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,6BAA6B,EAAE,6BAA6B,CAAC;IAC7D,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D"}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
-
import
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { MdeOnboardingsImpl, CustomAssessmentAutomationsImpl, CustomEntityStoreAssignmentsImpl, ComplianceResultsImpl, PricingsImpl, AdvancedThreatProtectionImpl, DeviceSecurityGroupsImpl, IotSecuritySolutionImpl, IotSecuritySolutionAnalyticsImpl, IotSecuritySolutionsAnalyticsAggregatedAlertImpl, IotSecuritySolutionsAnalyticsRecommendationImpl, LocationsImpl, OperationsImpl, TasksImpl, AutoProvisioningSettingsImpl, CompliancesImpl, InformationProtectionPoliciesImpl, SecurityContactsImpl, WorkspaceSettingsImpl, RegulatoryComplianceStandardsImpl, RegulatoryComplianceControlsImpl, RegulatoryComplianceAssessmentsImpl, SubAssessmentsImpl, AutomationsImpl, AlertsSuppressionRulesImpl, ServerVulnerabilityAssessmentOperationsImpl, AssessmentsMetadataImpl, AssessmentsImpl, AdaptiveApplicationControlsImpl, AdaptiveNetworkHardeningsImpl, AllowedConnectionsImpl, TopologyImpl, JitNetworkAccessPoliciesImpl, DiscoveredSecuritySolutionsImpl, SecuritySolutionsReferenceDataOperationsImpl, ExternalSecuritySolutionsImpl, SecureScoresImpl, SecureScoreControlsImpl, SecureScoreControlDefinitionsImpl, SecuritySolutionsImpl, ConnectorsImpl, SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentScanResultsImpl, SqlVulnerabilityAssessmentBaselineRulesImpl, AlertsImpl, SettingsImpl, IngestionSettingsImpl, SoftwareInventoriesImpl, SecurityConnectorsImpl, GovernanceRuleOperationsImpl, GovernanceRulesImpl, SecurityConnectorGovernanceRuleImpl, SecurityConnectorGovernanceRulesImpl, SubscriptionGovernanceRulesExecuteStatusImpl, SecurityConnectorGovernanceRulesExecuteStatusImpl, GovernanceAssignmentsImpl, ApplicationsImpl, ApplicationOperationsImpl, SecurityConnectorApplicationsImpl, SecurityConnectorApplicationImpl } from "./operations";
|
|
10
11
|
export class SecurityCenter extends coreClient.ServiceClient {
|
|
11
12
|
/**
|
|
12
13
|
* Initializes a new instance of the SecurityCenter class.
|
|
@@ -30,7 +31,7 @@ export class SecurityCenter extends coreClient.ServiceClient {
|
|
|
30
31
|
requestContentType: "application/json; charset=utf-8",
|
|
31
32
|
credential: credentials
|
|
32
33
|
};
|
|
33
|
-
const packageDetails = `azsdk-js-arm-security/
|
|
34
|
+
const packageDetails = `azsdk-js-arm-security/6.0.0-beta.1`;
|
|
34
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
35
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
36
37
|
: `${packageDetails}`;
|
|
@@ -41,6 +42,27 @@ export class SecurityCenter extends coreClient.ServiceClient {
|
|
|
41
42
|
userAgentPrefix
|
|
42
43
|
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
43
44
|
super(optionsWithDefaults);
|
|
45
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
46
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
47
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
48
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
49
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
50
|
+
}
|
|
51
|
+
if (!options ||
|
|
52
|
+
!options.pipeline ||
|
|
53
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
54
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
55
|
+
this.pipeline.removePolicy({
|
|
56
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
57
|
+
});
|
|
58
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
59
|
+
credential: credentials,
|
|
60
|
+
scopes: `${optionsWithDefaults.credentialScopes}`,
|
|
61
|
+
challengeCallbacks: {
|
|
62
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
44
66
|
// Parameter assignments
|
|
45
67
|
this.subscriptionId = subscriptionId;
|
|
46
68
|
// Assigning values to Constant parameters
|
|
@@ -94,6 +116,17 @@ export class SecurityCenter extends coreClient.ServiceClient {
|
|
|
94
116
|
this.ingestionSettings = new IngestionSettingsImpl(this);
|
|
95
117
|
this.softwareInventories = new SoftwareInventoriesImpl(this);
|
|
96
118
|
this.securityConnectors = new SecurityConnectorsImpl(this);
|
|
119
|
+
this.governanceRuleOperations = new GovernanceRuleOperationsImpl(this);
|
|
120
|
+
this.governanceRules = new GovernanceRulesImpl(this);
|
|
121
|
+
this.securityConnectorGovernanceRule = new SecurityConnectorGovernanceRuleImpl(this);
|
|
122
|
+
this.securityConnectorGovernanceRules = new SecurityConnectorGovernanceRulesImpl(this);
|
|
123
|
+
this.subscriptionGovernanceRulesExecuteStatus = new SubscriptionGovernanceRulesExecuteStatusImpl(this);
|
|
124
|
+
this.securityConnectorGovernanceRulesExecuteStatus = new SecurityConnectorGovernanceRulesExecuteStatusImpl(this);
|
|
125
|
+
this.governanceAssignments = new GovernanceAssignmentsImpl(this);
|
|
126
|
+
this.applications = new ApplicationsImpl(this);
|
|
127
|
+
this.applicationOperations = new ApplicationOperationsImpl(this);
|
|
128
|
+
this.securityConnectorApplications = new SecurityConnectorApplicationsImpl(this);
|
|
129
|
+
this.securityConnectorApplication = new SecurityConnectorApplicationImpl(this);
|
|
97
130
|
}
|
|
98
131
|
}
|
|
99
132
|
//# sourceMappingURL=securityCenter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityCenter.js","sourceRoot":"","sources":["../../src/securityCenter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"securityCenter.js","sourceRoot":"","sources":["../../src/securityCenter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,gCAAgC,EAChC,qBAAqB,EACrB,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,EACxB,uBAAuB,EACvB,gCAAgC,EAChC,gDAAgD,EAChD,+CAA+C,EAC/C,aAAa,EACb,cAAc,EACd,SAAS,EACT,4BAA4B,EAC5B,eAAe,EACf,iCAAiC,EACjC,oBAAoB,EACpB,qBAAqB,EACrB,iCAAiC,EACjC,gCAAgC,EAChC,mCAAmC,EACnC,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAC1B,2CAA2C,EAC3C,uBAAuB,EACvB,e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AC5E,IAAI,CACL,CAAC;QACF,IAAI,CAAC,gCAAgC,GAAG,IAAI,oCAAoC,CAC9E,IAAI,CACL,CAAC;QACF,IAAI,CAAC,wCAAwC,GAAG,IAAI,4CAA4C,CAC9F,IAAI,CACL,CAAC;QACF,IAAI,CAAC,6CAA6C,GAAG,IAAI,iDAAiD,CACxG,IAAI,CACL,CAAC;QACF,IAAI,CAAC,qBAAqB,GAAG,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,qBAAqB,GAAG,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,6BAA6B,GAAG,IAAI,iCAAiC,CACxE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;IACJ,CAAC;CA8DF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security_examples.spec.d.ts","sourceRoot":"","sources":["../../test/security_examples.spec.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { assert } from "chai";
|
|
12
|
+
import { SecurityCenter } from "../src/securityCenter";
|
|
13
|
+
const replaceableVariables = {
|
|
14
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
|
+
};
|
|
19
|
+
const recorderOptions = {
|
|
20
|
+
envSetupForPlayback: replaceableVariables
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe("security test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
let subscriptionId;
|
|
28
|
+
let client;
|
|
29
|
+
let location;
|
|
30
|
+
let resourceGroup;
|
|
31
|
+
let securityContactName;
|
|
32
|
+
let securityContact;
|
|
33
|
+
beforeEach(function () {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
recorder = new Recorder(this.currentTest);
|
|
36
|
+
yield recorder.start(recorderOptions);
|
|
37
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
38
|
+
// This is an example of how the environment variables are used
|
|
39
|
+
const credential = createTestCredential();
|
|
40
|
+
client = new SecurityCenter(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
41
|
+
location = "eastus";
|
|
42
|
+
resourceGroup = "myjstest";
|
|
43
|
+
securityContactName = "default";
|
|
44
|
+
securityContact = {
|
|
45
|
+
alertNotifications: { minimalSeverity: "Low", state: "On" },
|
|
46
|
+
emails: "john@contoso.com;jane@contoso.com",
|
|
47
|
+
notificationsByRole: { roles: ["Owner"], state: "On" },
|
|
48
|
+
phone: "+214-2754038"
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
afterEach(function () {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
yield recorder.stop();
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
it("SecurityContact create test", function () {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const res = yield client.securityContacts.create(securityContactName, securityContact);
|
|
60
|
+
assert.equal(res.name, securityContactName);
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
it("SecurityContact get test", function () {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const res = yield client.securityContacts.get(securityContactName);
|
|
66
|
+
assert.equal(res.name, securityContactName);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
it("SecurityContact list test", function () {
|
|
70
|
+
var e_1, _a;
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const resArray = new Array();
|
|
73
|
+
const res = client.securityContacts.list();
|
|
74
|
+
try {
|
|
75
|
+
for (var _b = __asyncValues(res.byPage()), _c; _c = yield _b.next(), !_c.done;) {
|
|
76
|
+
let item = _c.value;
|
|
77
|
+
resArray.push(item);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
assert.equal(resArray.length, 1);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
it("SecurityContact delete test", function () {
|
|
91
|
+
var e_2, _a;
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const resArray = new Array();
|
|
94
|
+
const res = yield client.securityContacts.delete(securityContactName);
|
|
95
|
+
try {
|
|
96
|
+
for (var _b = __asyncValues(client.securityContacts.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
97
|
+
let item = _c.value;
|
|
98
|
+
resArray.push(item);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
102
|
+
finally {
|
|
103
|
+
try {
|
|
104
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
105
|
+
}
|
|
106
|
+
finally { if (e_2) throw e_2.error; }
|
|
107
|
+
}
|
|
108
|
+
assert.equal(resArray.length, 0);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
//# sourceMappingURL=security_examples.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security_examples.spec.js","sourceRoot":"","sources":["../../test/security_examples.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAsB,CAAC;IAC3B,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,mBAA2B,CAAC;IAChC,IAAI,eAAgC,CAAC;IAErC,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAA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