@azure/arm-securityinsight 1.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 +5 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.js +20426 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +7571 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +813 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +437 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +12661 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +68 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +518 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/actions.d.ts +69 -0
- package/dist-esm/src/operations/actions.d.ts.map +1 -0
- package/dist-esm/src/operations/actions.js +249 -0
- package/dist-esm/src/operations/actions.js.map +1 -0
- package/dist-esm/src/operations/alertRuleTemplates.d.ts +46 -0
- package/dist-esm/src/operations/alertRuleTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/alertRuleTemplates.js +169 -0
- package/dist-esm/src/operations/alertRuleTemplates.js.map +1 -0
- package/dist-esm/src/operations/alertRules.d.ts +63 -0
- package/dist-esm/src/operations/alertRules.d.ts.map +1 -0
- package/dist-esm/src/operations/alertRules.js +238 -0
- package/dist-esm/src/operations/alertRules.js.map +1 -0
- package/dist-esm/src/operations/automationRules.d.ts +63 -0
- package/dist-esm/src/operations/automationRules.d.ts.map +1 -0
- package/dist-esm/src/operations/automationRules.js +244 -0
- package/dist-esm/src/operations/automationRules.js.map +1 -0
- package/dist-esm/src/operations/bookmarkOperations.d.ts +22 -0
- package/dist-esm/src/operations/bookmarkOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/bookmarkOperations.js +58 -0
- package/dist-esm/src/operations/bookmarkOperations.js.map +1 -0
- package/dist-esm/src/operations/bookmarkRelations.d.ts +69 -0
- package/dist-esm/src/operations/bookmarkRelations.d.ts.map +1 -0
- package/dist-esm/src/operations/bookmarkRelations.js +268 -0
- package/dist-esm/src/operations/bookmarkRelations.js.map +1 -0
- package/dist-esm/src/operations/bookmarks.d.ts +63 -0
- package/dist-esm/src/operations/bookmarks.d.ts.map +1 -0
- package/dist-esm/src/operations/bookmarks.js +238 -0
- package/dist-esm/src/operations/bookmarks.js.map +1 -0
- package/dist-esm/src/operations/dataConnectors.d.ts +80 -0
- package/dist-esm/src/operations/dataConnectors.d.ts.map +1 -0
- package/dist-esm/src/operations/dataConnectors.js +313 -0
- package/dist-esm/src/operations/dataConnectors.js.map +1 -0
- package/dist-esm/src/operations/dataConnectorsCheckRequirementsOperations.d.ts +21 -0
- package/dist-esm/src/operations/dataConnectorsCheckRequirementsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/dataConnectorsCheckRequirementsOperations.js +61 -0
- package/dist-esm/src/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -0
- package/dist-esm/src/operations/domainWhois.d.ts +20 -0
- package/dist-esm/src/operations/domainWhois.d.ts.map +1 -0
- package/dist-esm/src/operations/domainWhois.js +52 -0
- package/dist-esm/src/operations/domainWhois.js.map +1 -0
- package/dist-esm/src/operations/entities.d.ts +73 -0
- package/dist-esm/src/operations/entities.d.ts.map +1 -0
- package/dist-esm/src/operations/entities.js +272 -0
- package/dist-esm/src/operations/entities.js.map +1 -0
- package/dist-esm/src/operations/entitiesGetTimeline.d.ts +22 -0
- package/dist-esm/src/operations/entitiesGetTimeline.d.ts.map +1 -0
- package/dist-esm/src/operations/entitiesGetTimeline.js +58 -0
- package/dist-esm/src/operations/entitiesGetTimeline.js.map +1 -0
- package/dist-esm/src/operations/entitiesRelations.d.ts +41 -0
- package/dist-esm/src/operations/entitiesRelations.d.ts.map +1 -0
- package/dist-esm/src/operations/entitiesRelations.js +154 -0
- package/dist-esm/src/operations/entitiesRelations.js.map +1 -0
- package/dist-esm/src/operations/entityQueries.d.ts +63 -0
- package/dist-esm/src/operations/entityQueries.d.ts.map +1 -0
- package/dist-esm/src/operations/entityQueries.js +238 -0
- package/dist-esm/src/operations/entityQueries.js.map +1 -0
- package/dist-esm/src/operations/entityQueryTemplates.d.ts +46 -0
- package/dist-esm/src/operations/entityQueryTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/entityQueryTemplates.js +169 -0
- package/dist-esm/src/operations/entityQueryTemplates.js.map +1 -0
- package/dist-esm/src/operations/entityRelations.d.ts +22 -0
- package/dist-esm/src/operations/entityRelations.d.ts.map +1 -0
- package/dist-esm/src/operations/entityRelations.js +57 -0
- package/dist-esm/src/operations/entityRelations.js.map +1 -0
- package/dist-esm/src/operations/iPGeodata.d.ts +20 -0
- package/dist-esm/src/operations/iPGeodata.d.ts.map +1 -0
- package/dist-esm/src/operations/iPGeodata.js +52 -0
- package/dist-esm/src/operations/iPGeodata.js.map +1 -0
- package/dist-esm/src/operations/incidentComments.d.ts +69 -0
- package/dist-esm/src/operations/incidentComments.d.ts.map +1 -0
- package/dist-esm/src/operations/incidentComments.js +280 -0
- package/dist-esm/src/operations/incidentComments.js.map +1 -0
- package/dist-esm/src/operations/incidentRelations.d.ts +69 -0
- package/dist-esm/src/operations/incidentRelations.d.ts.map +1 -0
- package/dist-esm/src/operations/incidentRelations.js +268 -0
- package/dist-esm/src/operations/incidentRelations.js.map +1 -0
- package/dist-esm/src/operations/incidents.d.ts +97 -0
- package/dist-esm/src/operations/incidents.d.ts.map +1 -0
- package/dist-esm/src/operations/incidents.js +382 -0
- package/dist-esm/src/operations/incidents.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +33 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +40 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/metadata.d.ts +72 -0
- package/dist-esm/src/operations/metadata.d.ts.map +1 -0
- package/dist-esm/src/operations/metadata.js +291 -0
- package/dist-esm/src/operations/metadata.js.map +1 -0
- package/dist-esm/src/operations/officeConsents.d.ts +54 -0
- package/dist-esm/src/operations/officeConsents.d.ts.map +1 -0
- package/dist-esm/src/operations/officeConsents.js +200 -0
- package/dist-esm/src/operations/officeConsents.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/productSettings.d.ts +45 -0
- package/dist-esm/src/operations/productSettings.d.ts.map +1 -0
- package/dist-esm/src/operations/productSettings.js +151 -0
- package/dist-esm/src/operations/productSettings.js.map +1 -0
- package/dist-esm/src/operations/sentinelOnboardingStates.d.ts +44 -0
- package/dist-esm/src/operations/sentinelOnboardingStates.d.ts.map +1 -0
- package/dist-esm/src/operations/sentinelOnboardingStates.js +168 -0
- package/dist-esm/src/operations/sentinelOnboardingStates.js.map +1 -0
- package/dist-esm/src/operations/sourceControlOperations.d.ts +41 -0
- package/dist-esm/src/operations/sourceControlOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/sourceControlOperations.js +143 -0
- package/dist-esm/src/operations/sourceControlOperations.js.map +1 -0
- package/dist-esm/src/operations/sourceControls.d.ts +63 -0
- package/dist-esm/src/operations/sourceControls.d.ts.map +1 -0
- package/dist-esm/src/operations/sourceControls.js +244 -0
- package/dist-esm/src/operations/sourceControls.js.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicator.d.ts +97 -0
- package/dist-esm/src/operations/threatIntelligenceIndicator.d.ts.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicator.js +387 -0
- package/dist-esm/src/operations/threatIntelligenceIndicator.js.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicatorMetrics.d.ts +20 -0
- package/dist-esm/src/operations/threatIntelligenceIndicatorMetrics.d.ts.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicatorMetrics.js +53 -0
- package/dist-esm/src/operations/threatIntelligenceIndicatorMetrics.js.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicators.d.ts +38 -0
- package/dist-esm/src/operations/threatIntelligenceIndicators.d.ts.map +1 -0
- package/dist-esm/src/operations/threatIntelligenceIndicators.js +149 -0
- package/dist-esm/src/operations/threatIntelligenceIndicators.js.map +1 -0
- package/dist-esm/src/operations/watchlistItems.d.ts +69 -0
- package/dist-esm/src/operations/watchlistItems.d.ts.map +1 -0
- package/dist-esm/src/operations/watchlistItems.js +268 -0
- package/dist-esm/src/operations/watchlistItems.js.map +1 -0
- package/dist-esm/src/operations/watchlists.d.ts +65 -0
- package/dist-esm/src/operations/watchlists.d.ts.map +1 -0
- package/dist-esm/src/operations/watchlists.js +240 -0
- package/dist-esm/src/operations/watchlists.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/actions.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/actions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/actions.js +9 -0
- package/dist-esm/src/operationsInterfaces/actions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/alertRuleTemplates.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/alertRuleTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/alertRuleTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/alertRuleTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/alertRules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/alertRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/alertRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/alertRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/automationRules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/automationRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/automationRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/automationRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarkOperations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/bookmarkOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarkOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/bookmarkOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarkRelations.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/bookmarkRelations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarkRelations.js +9 -0
- package/dist-esm/src/operationsInterfaces/bookmarkRelations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarks.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/bookmarks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/bookmarks.js +9 -0
- package/dist-esm/src/operationsInterfaces/bookmarks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnectors.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/dataConnectors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnectors.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataConnectors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/domainWhois.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/domainWhois.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/domainWhois.js +9 -0
- package/dist-esm/src/operationsInterfaces/domainWhois.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entities.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/entities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entities.js +9 -0
- package/dist-esm/src/operationsInterfaces/entities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entitiesGetTimeline.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/entitiesGetTimeline.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entitiesGetTimeline.js +9 -0
- package/dist-esm/src/operationsInterfaces/entitiesGetTimeline.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entitiesRelations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/entitiesRelations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entitiesRelations.js +9 -0
- package/dist-esm/src/operationsInterfaces/entitiesRelations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityQueries.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/entityQueries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityQueries.js +9 -0
- package/dist-esm/src/operationsInterfaces/entityQueries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityQueryTemplates.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/entityQueryTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityQueryTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/entityQueryTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityRelations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/entityRelations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entityRelations.js +9 -0
- package/dist-esm/src/operationsInterfaces/entityRelations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/iPGeodata.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/iPGeodata.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/iPGeodata.js +9 -0
- package/dist-esm/src/operationsInterfaces/iPGeodata.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidentComments.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/incidentComments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidentComments.js +9 -0
- package/dist-esm/src/operationsInterfaces/incidentComments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidentRelations.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/incidentRelations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidentRelations.js +9 -0
- package/dist-esm/src/operationsInterfaces/incidentRelations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidents.d.ts +72 -0
- package/dist-esm/src/operationsInterfaces/incidents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/incidents.js +9 -0
- package/dist-esm/src/operationsInterfaces/incidents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +33 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +40 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/metadata.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/metadata.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/metadata.js +9 -0
- package/dist-esm/src/operationsInterfaces/metadata.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/officeConsents.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/officeConsents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/officeConsents.js +9 -0
- package/dist-esm/src/operationsInterfaces/officeConsents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/productSettings.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/productSettings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/productSettings.js +9 -0
- package/dist-esm/src/operationsInterfaces/productSettings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sentinelOnboardingStates.d.ts +36 -0
- package/dist-esm/src/operationsInterfaces/sentinelOnboardingStates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sentinelOnboardingStates.js +9 -0
- package/dist-esm/src/operationsInterfaces/sentinelOnboardingStates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sourceControlOperations.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/sourceControlOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sourceControlOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/sourceControlOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sourceControls.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/sourceControls.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sourceControls.js +9 -0
- package/dist-esm/src/operationsInterfaces/sourceControls.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicator.d.ts +68 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicator.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicator.js +9 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicator.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.js +9 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicators.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicators.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicators.js +9 -0
- package/dist-esm/src/operationsInterfaces/threatIntelligenceIndicators.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/watchlistItems.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/watchlistItems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/watchlistItems.js +9 -0
- package/dist-esm/src/operationsInterfaces/watchlistItems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/watchlists.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/watchlists.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/watchlists.js +9 -0
- package/dist-esm/src/operationsInterfaces/watchlists.js.map +1 -0
- package/dist-esm/src/securityInsights.d.ts +49 -0
- package/dist-esm/src/securityInsights.d.ts.map +1 -0
- package/dist-esm/src/securityInsights.js +82 -0
- package/dist-esm/src/securityInsights.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +95 -0
- package/review/arm-securityinsight.api.md +5007 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +8349 -0
- package/src/models/mappers.ts +14311 -0
- package/src/models/parameters.ts +616 -0
- package/src/operations/actions.ts +351 -0
- package/src/operations/alertRuleTemplates.ts +221 -0
- package/src/operations/alertRules.ts +314 -0
- package/src/operations/automationRules.ts +320 -0
- package/src/operations/bookmarkOperations.ts +80 -0
- package/src/operations/bookmarkRelations.ts +369 -0
- package/src/operations/bookmarks.ts +314 -0
- package/src/operations/dataConnectors.ts +413 -0
- package/src/operations/dataConnectorsCheckRequirementsOperations.ts +83 -0
- package/src/operations/domainWhois.ts +71 -0
- package/src/operations/entities.ts +366 -0
- package/src/operations/entitiesGetTimeline.ts +80 -0
- package/src/operations/entitiesRelations.ts +216 -0
- package/src/operations/entityQueries.ts +315 -0
- package/src/operations/entityQueryTemplates.ts +221 -0
- package/src/operations/entityRelations.ts +78 -0
- package/src/operations/iPGeodata.ts +68 -0
- package/src/operations/incidentComments.ts +381 -0
- package/src/operations/incidentRelations.ts +369 -0
- package/src/operations/incidents.ts +508 -0
- package/src/operations/index.ts +40 -0
- package/src/operations/metadata.ts +381 -0
- package/src/operations/officeConsents.ts +263 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/productSettings.ts +207 -0
- package/src/operations/sentinelOnboardingStates.ts +222 -0
- package/src/operations/sourceControlOperations.ts +206 -0
- package/src/operations/sourceControls.ts +320 -0
- package/src/operations/threatIntelligenceIndicator.ts +526 -0
- package/src/operations/threatIntelligenceIndicatorMetrics.ts +73 -0
- package/src/operations/threatIntelligenceIndicators.ts +190 -0
- package/src/operations/watchlistItems.ts +369 -0
- package/src/operations/watchlists.ts +316 -0
- package/src/operationsInterfaces/actions.ts +84 -0
- package/src/operationsInterfaces/alertRuleTemplates.ts +44 -0
- package/src/operationsInterfaces/alertRules.ts +75 -0
- package/src/operationsInterfaces/automationRules.ts +75 -0
- package/src/operationsInterfaces/bookmarkOperations.ts +32 -0
- package/src/operationsInterfaces/bookmarkRelations.ts +83 -0
- package/src/operationsInterfaces/bookmarks.ts +75 -0
- package/src/operationsInterfaces/dataConnectors.ts +106 -0
- package/src/operationsInterfaces/dataConnectorsCheckRequirementsOperations.ts +30 -0
- package/src/operationsInterfaces/domainWhois.ts +27 -0
- package/src/operationsInterfaces/entities.ts +98 -0
- package/src/operationsInterfaces/entitiesGetTimeline.ts +32 -0
- package/src/operationsInterfaces/entitiesRelations.ts +28 -0
- package/src/operationsInterfaces/entityQueries.ts +76 -0
- package/src/operationsInterfaces/entityQueryTemplates.ts +44 -0
- package/src/operationsInterfaces/entityRelations.ts +31 -0
- package/src/operationsInterfaces/iPGeodata.ts +24 -0
- package/src/operationsInterfaces/incidentComments.ts +83 -0
- package/src/operationsInterfaces/incidentRelations.ts +83 -0
- package/src/operationsInterfaces/incidents.ts +139 -0
- package/src/operationsInterfaces/index.ts +40 -0
- package/src/operationsInterfaces/metadata.ts +93 -0
- package/src/operationsInterfaces/officeConsents.ts +58 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/productSettings.ts +74 -0
- package/src/operationsInterfaces/sentinelOnboardingStates.ts +71 -0
- package/src/operationsInterfaces/sourceControlOperations.ts +32 -0
- package/src/operationsInterfaces/sourceControls.ts +75 -0
- package/src/operationsInterfaces/threatIntelligenceIndicator.ts +131 -0
- package/src/operationsInterfaces/threatIntelligenceIndicatorMetrics.ts +27 -0
- package/src/operationsInterfaces/threatIntelligenceIndicators.ts +29 -0
- package/src/operationsInterfaces/watchlistItems.ts +83 -0
- package/src/operationsInterfaces/watchlists.ts +77 -0
- package/src/securityInsights.ts +211 -0
- package/tsconfig.json +19 -0
- package/types/arm-securityinsight.d.ts +9299 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,526 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ThreatIntelligenceIndicator } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { SecurityInsights } from "../securityInsights";
|
|
15
|
+
import {
|
|
16
|
+
ThreatIntelligenceInformationUnion,
|
|
17
|
+
ThreatIntelligenceFilteringCriteria,
|
|
18
|
+
ThreatIntelligenceIndicatorQueryIndicatorsNextOptionalParams,
|
|
19
|
+
ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams,
|
|
20
|
+
ThreatIntelligenceIndicatorModelForRequestBody,
|
|
21
|
+
ThreatIntelligenceIndicatorCreateIndicatorOptionalParams,
|
|
22
|
+
ThreatIntelligenceIndicatorCreateIndicatorResponse,
|
|
23
|
+
ThreatIntelligenceIndicatorGetOptionalParams,
|
|
24
|
+
ThreatIntelligenceIndicatorGetResponse,
|
|
25
|
+
ThreatIntelligenceIndicatorCreateOptionalParams,
|
|
26
|
+
ThreatIntelligenceIndicatorCreateResponse,
|
|
27
|
+
ThreatIntelligenceIndicatorDeleteOptionalParams,
|
|
28
|
+
ThreatIntelligenceIndicatorQueryIndicatorsResponse,
|
|
29
|
+
ThreatIntelligenceAppendTags,
|
|
30
|
+
ThreatIntelligenceIndicatorAppendTagsOptionalParams,
|
|
31
|
+
ThreatIntelligenceIndicatorReplaceTagsOptionalParams,
|
|
32
|
+
ThreatIntelligenceIndicatorReplaceTagsResponse,
|
|
33
|
+
ThreatIntelligenceIndicatorQueryIndicatorsNextResponse
|
|
34
|
+
} from "../models";
|
|
35
|
+
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
37
|
+
/** Class containing ThreatIntelligenceIndicator operations. */
|
|
38
|
+
export class ThreatIntelligenceIndicatorImpl
|
|
39
|
+
implements ThreatIntelligenceIndicator {
|
|
40
|
+
private readonly client: SecurityInsights;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initialize a new instance of the class ThreatIntelligenceIndicator class.
|
|
44
|
+
* @param client Reference to the service client
|
|
45
|
+
*/
|
|
46
|
+
constructor(client: SecurityInsights) {
|
|
47
|
+
this.client = client;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Query threat intelligence indicators as per filtering criteria.
|
|
52
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
53
|
+
* @param workspaceName The name of the workspace.
|
|
54
|
+
* @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence
|
|
55
|
+
* indicators.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
public listQueryIndicators(
|
|
59
|
+
resourceGroupName: string,
|
|
60
|
+
workspaceName: string,
|
|
61
|
+
threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,
|
|
62
|
+
options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams
|
|
63
|
+
): PagedAsyncIterableIterator<ThreatIntelligenceInformationUnion> {
|
|
64
|
+
const iter = this.queryIndicatorsPagingAll(
|
|
65
|
+
resourceGroupName,
|
|
66
|
+
workspaceName,
|
|
67
|
+
threatIntelligenceFilteringCriteria,
|
|
68
|
+
options
|
|
69
|
+
);
|
|
70
|
+
return {
|
|
71
|
+
next() {
|
|
72
|
+
return iter.next();
|
|
73
|
+
},
|
|
74
|
+
[Symbol.asyncIterator]() {
|
|
75
|
+
return this;
|
|
76
|
+
},
|
|
77
|
+
byPage: () => {
|
|
78
|
+
return this.queryIndicatorsPagingPage(
|
|
79
|
+
resourceGroupName,
|
|
80
|
+
workspaceName,
|
|
81
|
+
threatIntelligenceFilteringCriteria,
|
|
82
|
+
options
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *queryIndicatorsPagingPage(
|
|
89
|
+
resourceGroupName: string,
|
|
90
|
+
workspaceName: string,
|
|
91
|
+
threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,
|
|
92
|
+
options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams
|
|
93
|
+
): AsyncIterableIterator<ThreatIntelligenceInformationUnion[]> {
|
|
94
|
+
let result = await this._queryIndicators(
|
|
95
|
+
resourceGroupName,
|
|
96
|
+
workspaceName,
|
|
97
|
+
threatIntelligenceFilteringCriteria,
|
|
98
|
+
options
|
|
99
|
+
);
|
|
100
|
+
yield result.value || [];
|
|
101
|
+
let continuationToken = result.nextLink;
|
|
102
|
+
while (continuationToken) {
|
|
103
|
+
result = await this._queryIndicatorsNext(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
workspaceName,
|
|
106
|
+
threatIntelligenceFilteringCriteria,
|
|
107
|
+
continuationToken,
|
|
108
|
+
options
|
|
109
|
+
);
|
|
110
|
+
continuationToken = result.nextLink;
|
|
111
|
+
yield result.value || [];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
private async *queryIndicatorsPagingAll(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
workspaceName: string,
|
|
118
|
+
threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,
|
|
119
|
+
options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams
|
|
120
|
+
): AsyncIterableIterator<ThreatIntelligenceInformationUnion> {
|
|
121
|
+
for await (const page of this.queryIndicatorsPagingPage(
|
|
122
|
+
resourceGroupName,
|
|
123
|
+
workspaceName,
|
|
124
|
+
threatIntelligenceFilteringCriteria,
|
|
125
|
+
options
|
|
126
|
+
)) {
|
|
127
|
+
yield* page;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Create a new threat intelligence indicator.
|
|
133
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
134
|
+
* @param workspaceName The name of the workspace.
|
|
135
|
+
* @param threatIntelligenceProperties Properties of threat intelligence indicators to create and
|
|
136
|
+
* update.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
createIndicator(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
workspaceName: string,
|
|
142
|
+
threatIntelligenceProperties: ThreatIntelligenceIndicatorModelForRequestBody,
|
|
143
|
+
options?: ThreatIntelligenceIndicatorCreateIndicatorOptionalParams
|
|
144
|
+
): Promise<ThreatIntelligenceIndicatorCreateIndicatorResponse> {
|
|
145
|
+
return this.client.sendOperationRequest(
|
|
146
|
+
{
|
|
147
|
+
resourceGroupName,
|
|
148
|
+
workspaceName,
|
|
149
|
+
threatIntelligenceProperties,
|
|
150
|
+
options
|
|
151
|
+
},
|
|
152
|
+
createIndicatorOperationSpec
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* View a threat intelligence indicator by name.
|
|
158
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
159
|
+
* @param workspaceName The name of the workspace.
|
|
160
|
+
* @param name Threat intelligence indicator name field.
|
|
161
|
+
* @param options The options parameters.
|
|
162
|
+
*/
|
|
163
|
+
get(
|
|
164
|
+
resourceGroupName: string,
|
|
165
|
+
workspaceName: string,
|
|
166
|
+
name: string,
|
|
167
|
+
options?: ThreatIntelligenceIndicatorGetOptionalParams
|
|
168
|
+
): Promise<ThreatIntelligenceIndicatorGetResponse> {
|
|
169
|
+
return this.client.sendOperationRequest(
|
|
170
|
+
{ resourceGroupName, workspaceName, name, options },
|
|
171
|
+
getOperationSpec
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Update a threat Intelligence indicator.
|
|
177
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
178
|
+
* @param workspaceName The name of the workspace.
|
|
179
|
+
* @param name Threat intelligence indicator name field.
|
|
180
|
+
* @param threatIntelligenceProperties Properties of threat intelligence indicators to create and
|
|
181
|
+
* update.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
create(
|
|
185
|
+
resourceGroupName: string,
|
|
186
|
+
workspaceName: string,
|
|
187
|
+
name: string,
|
|
188
|
+
threatIntelligenceProperties: ThreatIntelligenceIndicatorModelForRequestBody,
|
|
189
|
+
options?: ThreatIntelligenceIndicatorCreateOptionalParams
|
|
190
|
+
): Promise<ThreatIntelligenceIndicatorCreateResponse> {
|
|
191
|
+
return this.client.sendOperationRequest(
|
|
192
|
+
{
|
|
193
|
+
resourceGroupName,
|
|
194
|
+
workspaceName,
|
|
195
|
+
name,
|
|
196
|
+
threatIntelligenceProperties,
|
|
197
|
+
options
|
|
198
|
+
},
|
|
199
|
+
createOperationSpec
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Delete a threat intelligence indicator.
|
|
205
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
206
|
+
* @param workspaceName The name of the workspace.
|
|
207
|
+
* @param name Threat intelligence indicator name field.
|
|
208
|
+
* @param options The options parameters.
|
|
209
|
+
*/
|
|
210
|
+
delete(
|
|
211
|
+
resourceGroupName: string,
|
|
212
|
+
workspaceName: string,
|
|
213
|
+
name: string,
|
|
214
|
+
options?: ThreatIntelligenceIndicatorDeleteOptionalParams
|
|
215
|
+
): Promise<void> {
|
|
216
|
+
return this.client.sendOperationRequest(
|
|
217
|
+
{ resourceGroupName, workspaceName, name, options },
|
|
218
|
+
deleteOperationSpec
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Query threat intelligence indicators as per filtering criteria.
|
|
224
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
225
|
+
* @param workspaceName The name of the workspace.
|
|
226
|
+
* @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence
|
|
227
|
+
* indicators.
|
|
228
|
+
* @param options The options parameters.
|
|
229
|
+
*/
|
|
230
|
+
private _queryIndicators(
|
|
231
|
+
resourceGroupName: string,
|
|
232
|
+
workspaceName: string,
|
|
233
|
+
threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,
|
|
234
|
+
options?: ThreatIntelligenceIndicatorQueryIndicatorsOptionalParams
|
|
235
|
+
): Promise<ThreatIntelligenceIndicatorQueryIndicatorsResponse> {
|
|
236
|
+
return this.client.sendOperationRequest(
|
|
237
|
+
{
|
|
238
|
+
resourceGroupName,
|
|
239
|
+
workspaceName,
|
|
240
|
+
threatIntelligenceFilteringCriteria,
|
|
241
|
+
options
|
|
242
|
+
},
|
|
243
|
+
queryIndicatorsOperationSpec
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Append tags to a threat intelligence indicator.
|
|
249
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
250
|
+
* @param workspaceName The name of the workspace.
|
|
251
|
+
* @param name Threat intelligence indicator name field.
|
|
252
|
+
* @param threatIntelligenceAppendTags The threat intelligence append tags request body
|
|
253
|
+
* @param options The options parameters.
|
|
254
|
+
*/
|
|
255
|
+
appendTags(
|
|
256
|
+
resourceGroupName: string,
|
|
257
|
+
workspaceName: string,
|
|
258
|
+
name: string,
|
|
259
|
+
threatIntelligenceAppendTags: ThreatIntelligenceAppendTags,
|
|
260
|
+
options?: ThreatIntelligenceIndicatorAppendTagsOptionalParams
|
|
261
|
+
): Promise<void> {
|
|
262
|
+
return this.client.sendOperationRequest(
|
|
263
|
+
{
|
|
264
|
+
resourceGroupName,
|
|
265
|
+
workspaceName,
|
|
266
|
+
name,
|
|
267
|
+
threatIntelligenceAppendTags,
|
|
268
|
+
options
|
|
269
|
+
},
|
|
270
|
+
appendTagsOperationSpec
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Replace tags added to a threat intelligence indicator.
|
|
276
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
277
|
+
* @param workspaceName The name of the workspace.
|
|
278
|
+
* @param name Threat intelligence indicator name field.
|
|
279
|
+
* @param threatIntelligenceReplaceTags Tags in the threat intelligence indicator to be replaced.
|
|
280
|
+
* @param options The options parameters.
|
|
281
|
+
*/
|
|
282
|
+
replaceTags(
|
|
283
|
+
resourceGroupName: string,
|
|
284
|
+
workspaceName: string,
|
|
285
|
+
name: string,
|
|
286
|
+
threatIntelligenceReplaceTags: ThreatIntelligenceIndicatorModelForRequestBody,
|
|
287
|
+
options?: ThreatIntelligenceIndicatorReplaceTagsOptionalParams
|
|
288
|
+
): Promise<ThreatIntelligenceIndicatorReplaceTagsResponse> {
|
|
289
|
+
return this.client.sendOperationRequest(
|
|
290
|
+
{
|
|
291
|
+
resourceGroupName,
|
|
292
|
+
workspaceName,
|
|
293
|
+
name,
|
|
294
|
+
threatIntelligenceReplaceTags,
|
|
295
|
+
options
|
|
296
|
+
},
|
|
297
|
+
replaceTagsOperationSpec
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* QueryIndicatorsNext
|
|
303
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
304
|
+
* @param workspaceName The name of the workspace.
|
|
305
|
+
* @param threatIntelligenceFilteringCriteria Filtering criteria for querying threat intelligence
|
|
306
|
+
* indicators.
|
|
307
|
+
* @param nextLink The nextLink from the previous successful call to the QueryIndicators method.
|
|
308
|
+
* @param options The options parameters.
|
|
309
|
+
*/
|
|
310
|
+
private _queryIndicatorsNext(
|
|
311
|
+
resourceGroupName: string,
|
|
312
|
+
workspaceName: string,
|
|
313
|
+
threatIntelligenceFilteringCriteria: ThreatIntelligenceFilteringCriteria,
|
|
314
|
+
nextLink: string,
|
|
315
|
+
options?: ThreatIntelligenceIndicatorQueryIndicatorsNextOptionalParams
|
|
316
|
+
): Promise<ThreatIntelligenceIndicatorQueryIndicatorsNextResponse> {
|
|
317
|
+
return this.client.sendOperationRequest(
|
|
318
|
+
{
|
|
319
|
+
resourceGroupName,
|
|
320
|
+
workspaceName,
|
|
321
|
+
threatIntelligenceFilteringCriteria,
|
|
322
|
+
nextLink,
|
|
323
|
+
options
|
|
324
|
+
},
|
|
325
|
+
queryIndicatorsNextOperationSpec
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
// Operation Specifications
|
|
330
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
331
|
+
|
|
332
|
+
const createIndicatorOperationSpec: coreClient.OperationSpec = {
|
|
333
|
+
path:
|
|
334
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/createIndicator",
|
|
335
|
+
httpMethod: "POST",
|
|
336
|
+
responses: {
|
|
337
|
+
200: {
|
|
338
|
+
bodyMapper: Mappers.ThreatIntelligenceInformation
|
|
339
|
+
},
|
|
340
|
+
201: {
|
|
341
|
+
bodyMapper: Mappers.ThreatIntelligenceInformation
|
|
342
|
+
},
|
|
343
|
+
default: {
|
|
344
|
+
bodyMapper: Mappers.CloudError
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
requestBody: Parameters.threatIntelligenceProperties,
|
|
348
|
+
queryParameters: [Parameters.apiVersion],
|
|
349
|
+
urlParameters: [
|
|
350
|
+
Parameters.$host,
|
|
351
|
+
Parameters.subscriptionId,
|
|
352
|
+
Parameters.resourceGroupName,
|
|
353
|
+
Parameters.workspaceName
|
|
354
|
+
],
|
|
355
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
356
|
+
mediaType: "json",
|
|
357
|
+
serializer
|
|
358
|
+
};
|
|
359
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
360
|
+
path:
|
|
361
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}",
|
|
362
|
+
httpMethod: "GET",
|
|
363
|
+
responses: {
|
|
364
|
+
200: {
|
|
365
|
+
bodyMapper: Mappers.ThreatIntelligenceInformation
|
|
366
|
+
},
|
|
367
|
+
default: {
|
|
368
|
+
bodyMapper: Mappers.CloudError
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
queryParameters: [Parameters.apiVersion],
|
|
372
|
+
urlParameters: [
|
|
373
|
+
Parameters.$host,
|
|
374
|
+
Parameters.subscriptionId,
|
|
375
|
+
Parameters.resourceGroupName,
|
|
376
|
+
Parameters.workspaceName,
|
|
377
|
+
Parameters.name
|
|
378
|
+
],
|
|
379
|
+
headerParameters: [Parameters.accept],
|
|
380
|
+
serializer
|
|
381
|
+
};
|
|
382
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
383
|
+
path:
|
|
384
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}",
|
|
385
|
+
httpMethod: "PUT",
|
|
386
|
+
responses: {
|
|
387
|
+
200: {
|
|
388
|
+
bodyMapper: Mappers.ThreatIntelligenceInformation
|
|
389
|
+
},
|
|
390
|
+
201: {
|
|
391
|
+
bodyMapper: Mappers.ThreatIntelligenceInformation
|
|
392
|
+
},
|
|
393
|
+
default: {
|
|
394
|
+
bodyMapper: Mappers.CloudError
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
requestBody: Parameters.threatIntelligenceProperties,
|
|
398
|
+
queryParameters: [Parameters.apiVersion],
|
|
399
|
+
urlParameters: [
|
|
400
|
+
Parameters.$host,
|
|
401
|
+
Parameters.subscriptionId,
|
|
402
|
+
Parameters.resourceGroupName,
|
|
403
|
+
Parameters.workspaceName,
|
|
404
|
+
Parameters.name
|
|
405
|
+
],
|
|
406
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
407
|
+
mediaType: "json",
|
|
408
|
+
serializer
|
|
409
|
+
};
|
|
410
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
411
|
+
path:
|
|
412
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}",
|
|
413
|
+
httpMethod: "DELETE",
|
|
414
|
+
responses: {
|
|
415
|
+
200: {},
|
|
416
|
+
204: {},
|
|
417
|
+
default: {
|
|
418
|
+
bodyMapper: Mappers.CloudError
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
queryParameters: [Parameters.apiVersion],
|
|
422
|
+
urlParameters: [
|
|
423
|
+
Parameters.$host,
|
|
424
|
+
Parameters.subscriptionId,
|
|
425
|
+
Parameters.resourceGroupName,
|
|
426
|
+
Parameters.workspaceName,
|
|
427
|
+
Parameters.name
|
|
428
|
+
],
|
|
429
|
+
headerParameters: [Parameters.accept],
|
|
430
|
+
serializer
|
|
431
|
+
};
|
|
432
|
+
const queryIndicatorsOperationSpec: coreClient.OperationSpec = {
|
|
433
|
+
path:
|
|
434
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators",
|
|
435
|
+
httpMethod: "POST",
|
|
436
|
+
responses: {
|
|
437
|
+
200: {
|
|
438
|
+
bodyMapper: Mappers.ThreatIntelligenceInformationList
|
|
439
|
+
},
|
|
440
|
+
default: {
|
|
441
|
+
bodyMapper: Mappers.CloudError
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
requestBody: Parameters.threatIntelligenceFilteringCriteria,
|
|
445
|
+
queryParameters: [Parameters.apiVersion],
|
|
446
|
+
urlParameters: [
|
|
447
|
+
Parameters.$host,
|
|
448
|
+
Parameters.subscriptionId,
|
|
449
|
+
Parameters.resourceGroupName,
|
|
450
|
+
Parameters.workspaceName
|
|
451
|
+
],
|
|
452
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
453
|
+
mediaType: "json",
|
|
454
|
+
serializer
|
|
455
|
+
};
|
|
456
|
+
const appendTagsOperationSpec: coreClient.OperationSpec = {
|
|
457
|
+
path:
|
|
458
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}/appendTags",
|
|
459
|
+
httpMethod: "POST",
|
|
460
|
+
responses: {
|
|
461
|
+
200: {},
|
|
462
|
+
default: {
|
|
463
|
+
bodyMapper: Mappers.CloudError
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
requestBody: Parameters.threatIntelligenceAppendTags,
|
|
467
|
+
queryParameters: [Parameters.apiVersion],
|
|
468
|
+
urlParameters: [
|
|
469
|
+
Parameters.$host,
|
|
470
|
+
Parameters.subscriptionId,
|
|
471
|
+
Parameters.resourceGroupName,
|
|
472
|
+
Parameters.workspaceName,
|
|
473
|
+
Parameters.name
|
|
474
|
+
],
|
|
475
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
476
|
+
mediaType: "json",
|
|
477
|
+
serializer
|
|
478
|
+
};
|
|
479
|
+
const replaceTagsOperationSpec: coreClient.OperationSpec = {
|
|
480
|
+
path:
|
|
481
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators/{name}/replaceTags",
|
|
482
|
+
httpMethod: "POST",
|
|
483
|
+
responses: {
|
|
484
|
+
200: {
|
|
485
|
+
bodyMapper: Mappers.ThreatIntelligenceInformation
|
|
486
|
+
},
|
|
487
|
+
default: {
|
|
488
|
+
bodyMapper: Mappers.CloudError
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
requestBody: Parameters.threatIntelligenceReplaceTags,
|
|
492
|
+
queryParameters: [Parameters.apiVersion],
|
|
493
|
+
urlParameters: [
|
|
494
|
+
Parameters.$host,
|
|
495
|
+
Parameters.subscriptionId,
|
|
496
|
+
Parameters.resourceGroupName,
|
|
497
|
+
Parameters.workspaceName,
|
|
498
|
+
Parameters.name
|
|
499
|
+
],
|
|
500
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
501
|
+
mediaType: "json",
|
|
502
|
+
serializer
|
|
503
|
+
};
|
|
504
|
+
const queryIndicatorsNextOperationSpec: coreClient.OperationSpec = {
|
|
505
|
+
path: "{nextLink}",
|
|
506
|
+
httpMethod: "GET",
|
|
507
|
+
responses: {
|
|
508
|
+
200: {
|
|
509
|
+
bodyMapper: Mappers.ThreatIntelligenceInformationList
|
|
510
|
+
},
|
|
511
|
+
default: {
|
|
512
|
+
bodyMapper: Mappers.CloudError
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
queryParameters: [Parameters.apiVersion],
|
|
516
|
+
urlParameters: [
|
|
517
|
+
Parameters.$host,
|
|
518
|
+
Parameters.subscriptionId,
|
|
519
|
+
Parameters.resourceGroupName,
|
|
520
|
+
Parameters.workspaceName,
|
|
521
|
+
Parameters.nextLink
|
|
522
|
+
],
|
|
523
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
524
|
+
mediaType: "json",
|
|
525
|
+
serializer
|
|
526
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
9
|
+
import { ThreatIntelligenceIndicatorMetrics } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { SecurityInsights } from "../securityInsights";
|
|
14
|
+
import {
|
|
15
|
+
ThreatIntelligenceIndicatorMetricsListOptionalParams,
|
|
16
|
+
ThreatIntelligenceIndicatorMetricsListResponse
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/** Class containing ThreatIntelligenceIndicatorMetrics operations. */
|
|
20
|
+
export class ThreatIntelligenceIndicatorMetricsImpl
|
|
21
|
+
implements ThreatIntelligenceIndicatorMetrics {
|
|
22
|
+
private readonly client: SecurityInsights;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Initialize a new instance of the class ThreatIntelligenceIndicatorMetrics class.
|
|
26
|
+
* @param client Reference to the service client
|
|
27
|
+
*/
|
|
28
|
+
constructor(client: SecurityInsights) {
|
|
29
|
+
this.client = client;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Get threat intelligence indicators metrics (Indicators counts by Type, Threat Type, Source).
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param workspaceName The name of the workspace.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
list(
|
|
39
|
+
resourceGroupName: string,
|
|
40
|
+
workspaceName: string,
|
|
41
|
+
options?: ThreatIntelligenceIndicatorMetricsListOptionalParams
|
|
42
|
+
): Promise<ThreatIntelligenceIndicatorMetricsListResponse> {
|
|
43
|
+
return this.client.sendOperationRequest(
|
|
44
|
+
{ resourceGroupName, workspaceName, options },
|
|
45
|
+
listOperationSpec
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// Operation Specifications
|
|
50
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
51
|
+
|
|
52
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
53
|
+
path:
|
|
54
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/threatIntelligence/main/metrics",
|
|
55
|
+
httpMethod: "GET",
|
|
56
|
+
responses: {
|
|
57
|
+
200: {
|
|
58
|
+
bodyMapper: Mappers.ThreatIntelligenceMetricsList
|
|
59
|
+
},
|
|
60
|
+
default: {
|
|
61
|
+
bodyMapper: Mappers.CloudError
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
queryParameters: [Parameters.apiVersion],
|
|
65
|
+
urlParameters: [
|
|
66
|
+
Parameters.$host,
|
|
67
|
+
Parameters.subscriptionId,
|
|
68
|
+
Parameters.resourceGroupName,
|
|
69
|
+
Parameters.workspaceName
|
|
70
|
+
],
|
|
71
|
+
headerParameters: [Parameters.accept],
|
|
72
|
+
serializer
|
|
73
|
+
};
|